/* Reset and base styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #1a1f2e;
    --dark-surface: #2a3142;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: rgba(148, 163, 184, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --success: #10b981;
    --danger: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    background-image: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1), transparent 50%),
                      radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.1), transparent 50%);
    overflow-x: hidden;
}

/* Top Navigation Bar */
.navbar {
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-select {
    background: var(--dark-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.language-select option {
    background: var(--dark-surface);
    color: var(--text-primary);
    padding: 0.5rem;
}

.nav-cart {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.nav-cart:hover {
    color: var(--primary-color);
}

.nav-account, .nav-logout, .nav-login, .nav-register {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-account:hover, .nav-logout:hover, .nav-login:hover {
    color: var(--text-primary);
}

.nav-register {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-register:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    padding: 2rem 0 4rem 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

/* Product Detail Layout - Side by Side */
.product-detail-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 50px;
    margin-bottom: 40px;
    align-items: start;
}

/* Left Side - Product Image */
.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-image-container {
    background: rgba(42, 49, 66, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Image Placeholder */
.image-placeholder {
    display: none;
    width: 100%;
    min-height: 215px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    padding: 40px;
    text-align: center;
}

.product-image-container.image-error .image-placeholder {
    display: flex;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 80%;
    word-wrap: break-word;
}

/* Discord Button */
.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    margin-top: 20px;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
    text-decoration: none;
    color: white;
}

.discord-icon {
    flex-shrink: 0;
}

/* Right Side - Purchase Section */
.product-purchase-section {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.purchase-card {
    background: rgba(42, 49, 66, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.purchase-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 30px 0;
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

/* Variation Selector */
.variation-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.variation-option {
    position: relative;
}

.variation-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.variation-label {
    display: block;
    background: rgba(42, 49, 66, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variation-label:hover {
    border-color: var(--primary-color);
    background: rgba(42, 49, 66, 0.8);
    transform: translateY(-2px);
}

.variation-option input[type="radio"]:checked + .variation-label {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.variation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.variation-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.variation-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

.variation-price.unavailable {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Purchase Actions */
.purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.add-to-cart-btn-main,
.buy-now-btn-main {
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.buy-now-btn-main {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.buy-now-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.add-to-cart-btn-main {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.add-to-cart-btn-main:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Tabs Section Below */
.product-tabs-section {
    background: rgba(42, 49, 66, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Tab Headers */
.tab-headers {
    display: flex;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    background: rgba(42, 49, 66, 0.3);
}

.tab-header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-header:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.tab-header.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    border-bottom-color: var(--primary-color);
}

.tab-icon {
    font-size: 1.3rem;
}

.tab-label {
    font-weight: 600;
}

/* Tab Contents */
.tab-contents {
    padding: 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Variations Content */
.variations-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.variation-detail-card {
    /* No special styling needed, uses existing styles below */
}

.variation-divider {
    border: none;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin: 0;
}

/* FAQ Content */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background: rgba(42, 49, 66, 0.4);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(42, 49, 66, 0.6);
    transform: translateX(5px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.faq-answer {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.variation-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.variation-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 35px 0;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.features-column,
.requirements-column {
    background: rgba(42, 49, 66, 0.4);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.detail-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.features-list,
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li,
.requirements-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

.requirements-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Empty State and Error styles */
.empty-state, .error-container {
    text-align: center;
    max-width: 600px;
    margin: 80px auto;
    padding: 60px 30px;
    background: rgba(42, 49, 66, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.empty-icon, .error-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-state h3, .error-container h3 {
    font-size: 2rem;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.empty-state h3 {
    color: var(--text-primary);
}

.error-container h3 {
    color: var(--danger);
}

.empty-state p, .error-container p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding: 3rem 0 0 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom p {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-detail-layout {
        grid-template-columns: 450px 1fr;
        gap: 35px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-container {
        max-width: 100%;
    }

    .product-purchase-section {
        position: static;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .purchase-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cart, .nav-account, .nav-logout {
        display: none;
    }

    .main-content {
        margin-top: 70px;
        padding: 1.5rem 0 3rem 0;
    }

    .container {
        padding: 0 20px;
    }

    .product-title-main {
        font-size: 2rem;
    }

    .tab-contents {
        padding: 30px 25px;
    }

    .variation-detail-title {
        font-size: 1.6rem;
    }

    .tab-header {
        font-size: 1rem;
        padding: 16px 20px;
    }

    .tab-icon {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-title-main {
        font-size: 1.75rem;
    }

    .purchase-card {
        padding: 25px 20px;
    }

    .purchase-title {
        font-size: 1.3rem;
    }

    .variation-label {
        padding: 15px;
    }

    .variation-name {
        font-size: 0.95rem;
    }

    .variation-price {
        font-size: 1.1rem;
    }

    .add-to-cart-btn-main,
    .buy-now-btn-main {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .tab-contents {
        padding: 25px 20px;
    }

    .variation-detail-title {
        font-size: 1.4rem;
    }

    .variation-detail-description {
        font-size: 1rem;
    }

    .features-column,
    .requirements-column {
        padding: 20px;
    }

    .detail-heading {
        font-size: 1.1rem;
    }
}
