/* Code Fetcher 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: #06b6d4;  /* Cyan for page-specific accents */
    --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);
    --success: #10b981;
    --danger: #ef4444;
    --cyan-accent: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);  /* Cyan for page distinction */
}

/* Navigation styles are in navigation.css */
/* Main content layout is in base.css */

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

/* Header section with cyan accent for distinction */
.header-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 2rem;  /* Match product_checker */
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(20, 184, 166, 0.08));
    border-radius: 15px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.logo-section h1 {
    font-size: 2.5rem;  /* Match product_checker */
    font-weight: 700;
    color: var(--text-primary);  /* White text instead of cyan */
    margin-bottom: 8px;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;  /* Match product_checker subtitle size */
    margin-bottom: 0;
}

/* Special Offer Banner with Pink Theme */
.special-banner {
    margin-bottom: 30px;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: visible;
    z-index: 1;
    contain: layout;
}

.banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.1), transparent 60%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.special-banner .banner-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

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

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

.banner-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-note {
    color: #ffffff;
    font-style: italic;
    opacity: 1;
    font-size: 0.85rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Instructions alert section - match product_checker exactly */
.instructions-alert {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 15px;
    padding: 25px;  /* Match product_checker */
    margin-bottom: 30px;  /* Match product_checker */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.2);  /* Cyan border for distinction */
}

.alert-content h3 {
    color: #ec4899;  /* Pink color */
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

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

.step-number {
    background: var(--cyan-accent);  /* Cyan for distinction */
    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: var(--text-primary);
    font-weight: 500;
}

.important-note {
    color: rgb(21, 226, 48);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Form container - match product_checker exactly */
.form-container {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 20px;
    padding: 30px;  /* Match product_checker */
    margin-bottom: 30px;  /* Match product_checker */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.2);  /* Cyan border for distinction */
}

.form-header {
    text-align: center;
    margin-bottom: 20px;  /* Smaller */
}

.form-header h2 {
    color: #ec4899;  /* Pink color */
    font-size: 1.8rem;  /* Match product_checker */
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;  /* Match product_checker */
    font-weight: 500;
}

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

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

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

.example-text, .help-text {
    font-size: 0.9rem;  /* Match product_checker */
    color: var(--text-primary);  /* White text like product_checker */
    font-weight: 400;  /* Normal weight */
    margin-left: 0;  /* Remove auto margin */
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);  /* Cyan focus */
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

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

/* Get Code Button with cyan accent */
.get-code-button {
    width: 100%;
    padding: 15px 20px;
    background: var(--cyan-accent);  /* Cyan button for distinction */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    margin-bottom: 20px;
}

.get-code-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.get-code-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.loading-spinner {
    display: inline-block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Timing notice */
.timing-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(6, 182, 212, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

/* Code Result Section with cyan accents */
.code-result {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
    border: 2px solid rgba(6, 182, 212, 0.4);  /* Cyan border for distinction */
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

.result-header h2 {
    font-size: 1.8rem;
    background: var(--cyan-accent);  /* Cyan for distinction */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.code-details {
    margin-bottom: 25px;
}

.detail-item {
    background: rgba(42, 49, 66, 0.4);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);  /* Cyan accent */
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

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

.detail-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.code-item {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(20, 184, 166, 0.15));
    border: 2px solid rgba(6, 182, 212, 0.4);
}

.code-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-value {
    flex: 1;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3rem;
    color: var(--accent-color);  /* Cyan */
    background: rgba(6, 182, 212, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.copy-button {
    background: var(--cyan-accent);  /* Cyan button */
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.copy-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.copy-icon {
    font-size: 1.3rem;
    display: block;
}

.code-instructions {
    background: rgba(42, 49, 66, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.code-instructions h4 {
    color: var(--accent-color);  /* Cyan accent */
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.code-instructions ol {
    padding-left: 20px;
    color: var(--text-primary);
}

.code-instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Error States */
.no-code-found {
    background: linear-gradient(135deg, #3a2a3a, #2a1f2f);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: slideIn 0.5s ease;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-code-found h3 {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-details, .error-message {
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-details p, .error-message p {
    color: var(--text-primary);
    margin: 0;
}

.error-suggestions {
    text-align: left;
    background: rgba(42, 49, 66, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.error-suggestions h4 {
    color: var(--accent-color);  /* Cyan accent */
    margin-bottom: 10px;
}

.error-suggestions ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.error-suggestions li {
    margin-bottom: 6px;
}

/* Help Section */
.help-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.help-card {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(6, 182, 212, 0.2);  /* Cyan border */
}

.warranty-notice {
    color: var(--text-primary);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);  /* Cyan accent */
}

.warranty-notice p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Footer styles are in footer.css - import that file in your HTML */

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }

    .main-container {
        padding: 0 15px;  /* Match product_checker mobile */
    }

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

    .code-value {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }
}
