:root {
    --roboto: 'Roboto', sans-serif;
    --black: #222831;
    --dark_gray: #393e46;
    --light_gray: #eeeeee;
    --blue: #00adb5;
    --white: #ffffff;
    --red: firebrick;
}

/* Global styles for Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: var(--roboto);
    color: var(--black);
    font-size: 10px;
    background-color: var(--white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.margin-top {
    margin-top: 15px !important;
}

/* Container for consistent spacing */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 999999999;
}

/* Dark section with fixed height */
.dark-section {
    background-color: var(--black);
    color: var(--white);
    height: 350px; /* Fixed height that won't change with browser size */
    padding: 30px 0 0 0;
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Light section background */
.light-section {
    background-color: var(--light_gray);
    width: 100%;
    min-height: calc(100vh - 350px); /* Subtract dark section height to fill remaining viewport */
    padding-top: 100px; /* Space for the overlapping content box */
    position: relative;
    z-index: 1;
}

/* Navbar with 2-column layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Header content with 2-column layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem 0 1rem 0;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-button {
    color: var(--light_gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
}

.nav-button:hover {
    color: var(--white);
}

.nav-button .material-symbols-outlined {
    font-size: 24px;
}

.button-label {
    font-size: 1rem;
    font-weight: 700;
}

/* Navbar specific buttons */
.navbar-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--light_gray);
    font-size: 0.9rem;
    font-weight: 700;
}

.navbar-button:hover {
    background-color: var(--light_gray);
    color: var(--dark_gray);
}

.navbar-button .material-symbols-outlined {
    font-size: 1.5rem;
    margin-right: 3px;
}

/* Icon-only button for logout */
.icon-only-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--light_gray);
}

.icon-only-button:hover {
    background-color: var(--light_gray);
    color: var(--dark_gray);
}

.icon-only-button .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Cart button with counter */
.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--light_gray);
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-button:hover {
    background-color: var(--light_gray);
    color: var(--dark_gray);
}

.cart-button .material-symbols-outlined {
    font-size: 1.5rem;
    margin-right: 3px;
}

.cart-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark_gray);
    color: var(--light_gray);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 5px;
}

/* Header text styles */
.header-text h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--light_gray);
    margin: 0;
    letter-spacing: -1px;
}

.header-text p {
    font-size: 1rem;
    color: var(--light_gray);
    margin: 0;
    font-weight: 100;
}

/* Header buttons styles */
.header-buttons {
    display: flex;
    gap: 10px;
}

/* Main button style - reusable across the site */
.main-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: var(--dark_gray);
    color: var(--light_gray);
    font-size: 0.9rem;
    border: none !important;
}

.main-button:hover {
    background-color: var(--light_gray);
    color: var(--dark_gray);
}

/* Header navigation row */
.header-nav-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1000;
}

.header-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Icon button style */
.icon-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--light_gray);
    font-size: 0.9rem;
    font-weight: 700;
}

.icon-button .material-symbols-outlined {
    font-size: 1.5rem;
    margin-right: 3px;
}

.icon-button:hover {
    background-color: var(--light_gray);
    color: var(--dark_gray);
}

/* Dropdown Menu Styles (Vender and Cuenta) */
.vender-dropdown,
.cuenta-dropdown {
    position: relative;
    display: inline-block;
}

.vender-btn,
.cuenta-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.vender-dropdown-content,
.cuenta-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 4px;
    margin-top: 5px;
}

.vender-dropdown-content a,
.cuenta-dropdown-content a {
    color: var(--black);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 10px;
}

.vender-dropdown-content a .material-symbols-outlined,
.cuenta-dropdown-content a .material-symbols-outlined {
    font-size: 1.2rem;
}

.vender-dropdown-content a:hover,
.cuenta-dropdown-content a:hover {
    background-color: var(--light_gray);
}

.vender-dropdown:hover .vender-dropdown-content,
.cuenta-dropdown:hover .cuenta-dropdown-content {
    display: block;
}

.vender-dropdown:hover .arrow,
.cuenta-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.vender-dropdown .arrow,
.cuenta-dropdown .arrow {
    transition: transform 0.3s;
    font-size: 1.2rem !important;
}

/* Main content box */
.content-box {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    padding: 30px;
    margin-top: -170px; /* Pull up into dark section */
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Search container */
.search-container {
    margin-bottom: 30px;
}

/* Search form */
.search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--light_gray);
    border-radius: 4px;
    height: 45px;
}

/* Category dropdown */
.search-category {
    padding: 0 15px;
    border: none;
    border-right: 1px solid var(--light_gray);
    background-color: var(--white);
    color: var(--black);
    font-size: 1rem;
    font-weight: 100;
    min-width: 160px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23393e46' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 45px;
    height: 100%;
}

/* Search input */
.search-input {
    flex: 1;
    padding: 0 15px;
    border: none;
    font-size: 1rem;
    outline: none;
    height: 100%;
    color: var(--black);
    font-weight: 100;
}

/* Search button */
.search-button {
    background-color: var(--white);
    color: var(--dark_gray);
    border: none;
    border-left: 1px solid var(--light_gray);
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #f9f9f9;
}

/* Featured Cards Section */
.featured-cards {
    margin: 40px 0;
}

.section-title {
    color: var(--black);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-description {
    color: var(--black);
    font-size: 1.2rem;
    font-weight: 300;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.card-item {
    border-radius: 8px;
    overflow: hidden;
}

.card-image {
    position: relative;
    padding-top: 10px;
    text-align: center;
}

.card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card-info {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-details {
    flex: 1;
}

.card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: var(--black);
    font-weight: 700;
    letter-spacing: -1px;
}

.card-expansion {
    margin: 0;
    font-size: 0.8rem;
    color: var(--dark_gray);
    font-weight: 300;
}

.expansion-code {
    font-weight: 700;
    font-size: 0.6rem;
    margin-left: 5px;
    background-color: var(--black);
    color: var(--light_gray);
    padding: 1px 3px;
    border-radius: 1px;
}

.card-number {
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--dark_gray);
    margin-left: 5px;
}

.card-pricing {
    text-align: right;
    letter-spacing: -1px;
}

.card-price {
    font-size: 1rem;
    color: var(--black);
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

/* Card Link Styles */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-name-link {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-name-link:hover {
    color: var(--blue);
}

/* Cards Table Styles */
.cards-table-container {
    margin-top: 40px;
    overflow-x: auto;
}

.cards-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* Column widths */
.col-image { width: 30px; }
.col-name { width: 200px; }
.col-expansion,
.col-rarity,
.col-language,
.col-number,
.col-stock,
.col-price { width: 50px; }

/* Cell alignment */
.cards-table td:first-child { text-align: center; } /* Image */
.cards-table td:nth-child(2) { text-align: left; } /* Name */
.cards-table td:nth-child(3) { text-align: center; } /* Expansion */
.cards-table td:nth-child(4) { text-align: center; } /* Rarity */
.cards-table td:nth-child(5) { text-align: center; } /* Language */
.cards-table td:nth-child(6) { text-align: center; } /* Number */
.cards-table td:nth-child(7) { text-align: center; } /* Stock */
.cards-table td:nth-child(8) { text-align: center; } /* Price */

/* Text alignment */
.cards-table th:nth-child(3),
.cards-table th:nth-child(4),
.cards-table th:nth-child(5),
.cards-table th:nth-child(6),
.cards-table th:nth-child(7),
.cards-table th:nth-child(8) {
    text-align: center;
}

.cards-table th {
    padding: 15px 15px;
    text-align: left;
    font-weight: 200;
    color: var(--black);
    border-bottom: 1px solid var(--light_gray);
}

.cards-table tbody tr {
    border-bottom: 1px solid var(--light_gray);
}

.cards-table tbody tr:hover {
    background-color: var(--light_gray);
}

.cards-table td {
    padding: 10px 15px;
    vertical-align: middle;
}

.td-image {
    width: 30px;
    padding-right: 0;
    text-align: center;
}

.td-name {
    font-weight: 700;
    padding-left: 5px;
    font-size: 1.3rem;
    color: var(--black);
    letter-spacing: -1px;
    text-align: left;
}

.table-card-thumb {
    width: 20px;
    height: auto;
    border-radius: 1px;
}

.td-name {
    font-weight: 700;
    padding-left: 5px;
    font-size: 1rem;
    color: var(--black);
    letter-spacing: -1px;
    text-align: left;
}

.td-price {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1rem;
    color: var(--black);
}

.cards-table .expansion-code {
    margin-right: 5px;
}

.td-flag {
    text-align: center;
}

.flag-icon {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

.td-rarity {
    text-align: center;
}

.rarity-icon {
    width: 15px;
    height: auto;
    vertical-align: middle;
}

/* Sealed Products Section Styles */
.sealed-products {
    margin-top: 5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sealed-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 3rem 0;
}

.sealed-product-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.product-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.background-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
}

.product-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    padding: 20px 0;
    display: block;
    position: relative;
    z-index: 10;
    letter-spacing: -1px;
    background-color: var(--white);
}

.product-link:hover {
    color: var(--blue);
}


/* Vender page styles */

/* Selling options section */
.selling-options {
    margin-top: 40px;
}

.selling-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.selling-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.selling-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.selling-card:hover .selling-card-info h3 {
    color: var(--blue);
}

.selling-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.selling-card-info {
    background-color: var(--white);
    padding: 20px;
    text-align: center;
}

.selling-card-info h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
}

/* Responsive styles for selling options */
@media (max-width: 768px) {
    .selling-options-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section Styles */
.cta-section {
    padding: 3rem 0;
    margin: 6rem 0;
    position: relative;
    z-index: 5;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--black);
}

.cta-text h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.cta-text p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

