/* Product Checker Page Styles */
/* Base styles (html, body, main-content) are in base.css */
/* Navigation styles are in navigation.css */
/* Footer styles are in footer.css */

/* Prevent scrollbar flash on load */
html, body {
    scrollbar-gutter: stable;
}

:root {
    --primary-color: #ffd700;
    --secondary-color: #ff9500;
    --accent-color: #ff6b35;
    --dark-bg: #0f0a05;
    --dark-surface: #1a130a;
    --text-primary: #ffffff;
    --text-secondary: #d4af37;
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    --border-color: rgba(255, 215, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --gold: #ffd700;
    --success: #10b981;
    --danger: #ef4444;
}

/* Navigation styles are now in navigation.css */

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Header section */
.header-section {
    text-align: center;
    margin-bottom: 30px;
    background: var(--dark-surface);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--dark-surface);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
}

.language-selector select {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background: var(--dark-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Tutorial alert section */
.tutorial-alert {
    background: linear-gradient(135deg, #3a3f52, #2f3444);  /* Warm dark gradient */
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);  /* Gold border for warmth */
}

.alert-content h3 {
    color: #FFD700;  /* Gold for warmth */
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tutorial-steps {
    margin-bottom: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px;
    background: rgba(42, 49, 66, 0.4);  /* Dark warm background */
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.95rem;
    color: #f8fafc;  /* White text for dark background */
    font-weight: 500;
}

.tutorial-note {
    color: #15e230;  /* White text */
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);  /* Gold background for warmth */
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);  /* Gold border */
}

/* Merdeka Banner - Special Promo */
.merdeka-banner {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.merdeka-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s linear infinite;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.banner-text p {
    color: #ffffff;  /* Changed to white for better visibility on dark background */
    font-size: 1rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Added shadow for contrast */
}

.banner-text small {
    color: #ffffff;  /* Changed to white for better visibility on dark background */
    font-size: 0.85rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Added shadow for contrast */
}

.banner-btn {
    background: #1a1a1a;
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
}

.banner-btn:hover {
    background: transparent;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Form container */
.form-container {
    background: linear-gradient(135deg, #3a3f52, #2f3444);  /* Warm dark gradient matching tutorial */
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #FFD700, #FFA500);  /* Gold gradient for warmth */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: #94a3b8;  /* Light gray for dark background */
    font-size: 1rem;
    font-weight: 500;
}

/* Input group */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f8fafc;  /* White text for dark background */
    margin-bottom: 8px;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.1rem;
}

.example-text {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.9rem;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #0f172a;
}

.input-group input[type="text"]::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-help {
    margin-top: 5px;
}

.input-help small {
    color: #ff8800;
    font-size: 0.9rem;
}

/* Buttons */
.claim-button {
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.claim-button:active {
    transform: translateY(0);
}

.claim-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

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

.button-text {
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.discord-button,
.otp-button {
    flex: 1;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    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(88, 101, 242, 0.3);
}

.otp-button {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.otp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Loading spinner */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
#resultsContainer {
    animation: fadeInScale 0.5s ease;
}

.message-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    background: var(--dark-surface);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.important-notice {
    color: var(--gold);
    font-size: 1rem;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: inline-block;
}

.product-cards {
    display: grid;
    gap: 20px;
}

.product-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.product-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.product-header h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-content {
    color: #2d3748;
    line-height: 1.8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    padding: 10px 0;
}

/* Style each line item as a row */
.product-content .info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-content .info-row:last-child {
    border-bottom: none;
}

.product-content .info-label {
    font-weight: 600;
    color: #1a202c;
    min-width: 140px;
    margin-right: 15px;
    font-size: 0.9rem;
    display: inline-block;
}

.product-content .info-value {
    color: #4a5568;
    flex: 1;
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace; /* Better monospace for values */
    background: rgba(99, 102, 241, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

.product-content strong {
    color: #0f172a;
    font-weight: 600;
}

.product-content br {
    display: block;
    margin: 0.3em 0;
}

.product-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    transition: all 0.2s ease;
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.product-content a:hover {
    text-decoration: underline;
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(2px);
}

/* No Products */
.no-products {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-products-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-products p {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 10px;
}

.no-products strong {
    color: var(--primary-color);
}

/* Special Banner */
.special-banner {
    margin: 30px 0;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: visible; /* Allow card to overflow */
    z-index: 1;
    contain: layout; /* Prevent layout shifts */
}

.banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent 60%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: 12px; /* Match parent border radius */
    overflow: hidden; /* Contain the glow within rounded corners */
    z-index: -1; /* Put glow behind content */
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05); /* Reduced scale to prevent overflow */
    }
}

.special-banner .banner-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    padding-right: 170px; /* Space for the card */
    box-sizing: border-box;
}

.banner-text {
    flex: 1;
    padding-right: 20px;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.banner-subtitle {
    font-size: 1.1rem;
    color: #ffffff; /* White text */
    margin-bottom: 5px;
    font-weight: 500; /* Added weight for better visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Added shadow for contrast */
}

.banner-note {
    color: #ffffff; /* White text */
    font-style: italic;
    opacity: 1; /* Full opacity for better visibility */
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Added shadow for contrast */
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.banner-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

/* Promotional Section */
.promo-section {
    margin-bottom: 30px;
    margin-top: 60px;
}

.promo-card {
    background: linear-gradient(135deg, var(--dark-surface), rgba(255, 215, 0, 0.05));
    border: 2px solid var(--gold);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

/* Premium Gold Card Styles */
.promo-card.premium-gold {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid var(--gold);
    animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2),
                    inset 0 0 20px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4),
                    inset 0 0 30px rgba(255, 215, 0, 0.2);
    }
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.2),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.promo-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.promo-subtitle {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.promo-discount {
    color: var(--gold);
    font-weight: 500;
}

.premium-btn {
    position: relative;
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    color: var(--dark-bg);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-text {
    position: relative;
    z-index: 1;
}

.promo-main-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    gap: 20px;
}

.promo-main-link img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.promo-content h3 {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.promo-actions {
    padding: 0 20px 20px;
}

.discord-btn {
    display: inline-block;
    background: var(--gold);
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background: #FFED4E;
    transform: translateX(5px);
}

/* Footer styles are in footer.css */

/* Animation for results appearing */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */

@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;
    }

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

    .nav-right {
        gap: 0.75rem;
    }

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

    .main-content {
        margin-top: 70px;
    }

    .main-container {
        padding: 0 15px;
    }

    .logo-text h1 {
        font-size: 2rem;
    }

    .banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .promo-main-link {
        flex-direction: column;
        text-align: center;
    }
}