:root {
    --bg-colour: #1e1e1e;
    --text-colour: #f5f5f5;
}

body {
    background-color: var(--bg-colour);
    color: var(--text-colour);
    font-family: "Arial", sans-serif;
    margin: 0;
    padding-top: 55px;
    min-height: calc(100vh - 55px);
    display: flex;
    flex-direction: column;
}

.topbar {
    width: 100%;
    background-color: #2a2a2a; 
    padding: 14px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;   
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
    font-weight: bold;
}

.topbar .left {
    display: flex;
    align-items: center;
}

.topbar .left a:last-child {
    margin-right: 0;
}

.topbar .right a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.topbar a:last-child {
    margin-right: 0;
}

.topbar a:hover {
    color: #66aaff;
}

.search-bar {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 10px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    box-sizing: border-box;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    font-size: 16px;
}

.filters {
    display: flex;
    gap: 10px;
}

.filters select {
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.flip-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.flip-card {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.flip-card:hover {
    border: 1px solid #66aaff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(102, 170, 255, 0.4);
    z-index: 10;
}

.flip-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.flip-header .price-info {
    font-size: 14px;
    color: #cccccc;
}

.flip-info p {
    margin: 6px 0;
    font-size: 14px;
}

.page-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 12px;
    color: #ffffff;
}

.page-info h1 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #ffffff;
}

.info-content p {
    margin: 8px 0;
    font-size: 1.1rem;
    color: #dcdee1;
}

.info-content strong {
    color: #57F287;
}

.intro {
    margin-top: -70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 200px;
    color: #ffffff;
}

.intro h1 {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 3rem;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.intro h1, .intro p {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.video-container {
    display: flex;
    justify-content: center;
    gap: 30px;           
    padding: 40px 20px;
    flex-wrap: wrap;      
    max-width: 1200px;
    margin: 0 auto;  
}

.video-placeholder {
    flex: 1;  
    min-width: 300px;  
    max-width: 560px;     
    aspect-ratio: 16 / 9;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nav-search {
    display: flex;
    align-items: center;
    background: #3a3a3a;
    border-radius: 6px;
    padding: 2px 8px;
    margin: 0 20px;
}

.nav-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 6px;
    outline: none;
    font-size: 14px;
    width: 180px;
}

#status-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 20px;
    z-index: 2000;
    backdrop-filter: blur(4px);
    border: 1px solid #444;
}

#bazaar-status, #auction-status {
    transition: color 0.3s ease;
}

.category-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header {
    background-color: #333;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #444;
}

.card-header i {
    color: #f5f5f5;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body p {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ccc;
}

.btn-primary {
    background-color: #3e5b84;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #4e6b94;
}