/* ===== UPDATES PAGE STYLES ===== */

/* Hero Section */
.updates-page {
    min-height: 100vh;
    background: var(--bg);
    padding-top: 80px;
}

.updates-hero {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.updates-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.updates-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: white;
}

.updates-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--space-lg);
}

.version-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.version-badge,
.env-badge,
.date-badge {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.version-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.125rem;
}

.env-badge {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.env-dev {
    background: var(--warning-color);
    color: var(--bg);
}

.env-uat {
    background: var(--info-color);
    color: white;
}

.env-prod {
    background: var(--success-color);
    color: white;
}

.date-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.funny-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
    margin-top: var(--space-md);
    transition: opacity 0.3s ease;
}

#rotating-subtitle {
    transition: opacity 0.3s ease;
}

/* Updates Content Section */
.updates-content {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #e8eaf0 0%, #dce0e8 100%);
}

.updates-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* Update Card */
.update-card {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.update-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.update-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    cursor: pointer;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.04));
    transition: background var(--transition-speed);
    border-bottom: 2px solid rgba(99, 102, 241, 0.12);
}

.update-card-header:hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
}

.update-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-icon i {
    font-size: 1.5rem;
    color: #e9d5ff;
}

.update-title-group {
    flex: 1;
}

.update-category-pill {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    border: 1.5px solid currentColor;
    opacity: 0.9;
}

.update-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.collapse-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--primary-bg);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.collapse-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.collapse-btn i {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform var(--transition-speed);
}

.update-card-body {
    padding: var(--space-lg);
    background: #fefefe;
    color: var(--text-secondary);
    line-height: 1.7;
}

.update-description {
    margin-bottom: var(--space-lg);
    color: var(--text);
    font-size: 0.9375rem;
}

.update-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.update-benefit {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.04));
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.update-benefit strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 600;
}

.update-benefit ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-benefit li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: var(--space-xs);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.update-benefit li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Feedback Section */
.updates-feedback-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.updates-feedback-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

/* About Creator */
.about-creator {
    position: sticky;
    top: 100px;
}

.creator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.creator-avatar-container {
    position: relative;
    margin-bottom: var(--space-md);
}

.creator-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.avatar-swap-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium),
                background-color var(--transition-fast);
}

.avatar-swap-btn:hover {
    transform: rotate(30deg);
    background-color: var(--secondary);
    color: white;
}

.avatar-swap-btn i {
    font-size: 1.25rem;
}

.creator-message h3 {
    color: white;
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-2xl);
}

.creator-message p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 450px;
    color: white;
}

.contact-links {
    text-align: center;
}

.contact-links p {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: var(--font-size-xl);
    transition: transform var(--transition-medium),
                background-color var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-4px);
    background-color: white;
    color: #6366f1;
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Feedback Form */
.feedback-form-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feedback-form-container h3 {
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.feedback-form .form-group {
    margin-bottom: var(--space-lg);
}

.feedback-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

/* Pill Selector - Match main page compact style */
.updates-feedback-section .pill-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.updates-feedback-section .pill-selector input[type="radio"] {
    display: none;
}

.updates-feedback-section .pill-option {
    padding: var(--space-xs);
    border: 2px solid rgba(77, 74, 240, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    background: rgba(77, 74, 240, 0.05);
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.updates-feedback-section .pill-emoji {
    font-size: 1.2rem;
    display: block;
}

.updates-feedback-section .pill-text {
    font-size: 0.8rem;
    line-height: 1.2;
}

.updates-feedback-section .pill-option:hover {
    border-color: var(--primary);
    background: rgba(77, 74, 240, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(77, 74, 240, 0.2);
}

.updates-feedback-section .pill-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 74, 240, 0.4);
    font-weight: 700;
}

.updates-feedback-section .pill-option.selected .impulse-link {
    color: white;
}

.updates-feedback-section .pill-option .impulse-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

/* Form Inputs - Match main page style */
.updates-feedback-section .feedback-form input[type="text"],
.updates-feedback-section .feedback-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid rgba(77, 74, 240, 0.3);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-medium);
}

.updates-feedback-section .feedback-form input[type="text"]:focus,
.updates-feedback-section .feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(77, 74, 240, 0.1);
}

.updates-feedback-section .feedback-form textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-creator {
        position: static;
    }
}

@media (max-width: 768px) {
    .updates-header h1 {
        font-size: 2rem;
    }

    .updates-header .subtitle {
        font-size: 1rem;
    }

    .version-badges {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .update-card-header {
        flex-wrap: wrap;
    }

    .update-title-group {
        width: 100%;
    }

    .pill-selector {
        flex-direction: column;
    }

    .pill-option {
        min-width: 100%;
    }
}

/* Dark Theme Compatibility */
[data-theme="dark"] .updates-content {
    background: linear-gradient(180deg, #0a0a14 0%, #14141f 100%);
}

[data-theme="dark"] .update-card {
    background: #1e1e2e;
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .update-card-header {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .update-card-header:hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.1));
}

[data-theme="dark"] .update-card-body {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .update-description {
    color: var(--text);
}

[data-theme="dark"] .update-description strong {
    color: #a78bfa;
}

[data-theme="dark"] .update-benefit {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border-left-color: #a78bfa;
}

[data-theme="dark"] .update-benefit strong {
    color: #c4b5fd;
}

[data-theme="dark"] .update-benefit li {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .update-icon i {
    color: #e9d5ff;
}

[data-theme="dark"] .pill-option {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pill-option:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
}

[data-theme="dark"] .pill-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .feedback-form input[type="text"],
[data-theme="dark"] .feedback-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .feedback-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .collapse-btn {
    background: rgba(67, 97, 238, 0.2);
    border-color: var(--primary-color);
}
