/* ============================================
   Voice of Iran - Under Construction
   A Persian-inspired modern aesthetic
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Deep teal and gold inspired by Persian art */
    --color-bg-dark: #0a1a1f;
    --color-bg-medium: #0f2830;
    --color-primary: #1a9c8c;
    --color-primary-light: #2dd4c3;
    --color-accent: #d4a855;
    --color-accent-light: #f0c969;
    --color-text: #e8f0ed;
    --color-text-muted: #8ba5a0;
    --color-text-dim: #4d6b65;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-pattern {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            var(--color-primary) 2px,
            var(--color-primary) 4px
        );
    background-size: 60px 60px;
    animation: patternShift 60s linear infinite;
}

@keyframes patternShift {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.bg-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26, 156, 140, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212, 168, 85, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 0% 70%, rgba(26, 156, 140, 0.06) 0%, transparent 40%);
}

/* Layout */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    padding-bottom: 0;
    z-index: 1;
}

.content {
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

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

/* Brand Section */
.brand {
    margin-bottom: var(--space-lg);
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    color: var(--color-primary-light);
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo svg {
    width: 100%;
    height: 100%;
}

.title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 600;
}

/* Persian Text */
.persian-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-text-dim);
    letter-spacing: 0.3em;
    margin-top: var(--space-sm);
    direction: rtl;
    opacity: 0.6;
}

/* Status Badge */
.status {
    margin: var(--space-lg) 0 var(--space-md);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(26, 156, 140, 0.1);
    border: 1px solid rgba(26, 156, 140, 0.3);
    border-radius: 100px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(45, 212, 195, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(45, 212, 195, 0);
    }
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-light);
}

/* Description */
.description {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.description em {
    color: var(--color-accent-light);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-text-dim),
        transparent
    );
}

.divider-ornament {
    color: var(--color-accent);
    font-size: 0.75rem;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}


/* Action Sections (Petitions, Email) */
.petitions-section,
.email-section {
    margin-top: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.section-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #158577 100%);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 156, 140, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(26, 156, 140, 0.4);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.action-button svg {
    flex-shrink: 0;
}

/* Email Section */

.email-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.email-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

a.email-button {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4a855 0%, #c49545 100%);
    color: #0a1a1f !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 85, 0.3);
    cursor: pointer;
}

a.email-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 168, 85, 0.4);
    background: linear-gradient(135deg, #f0c969 0%, #d4a855 100%);
}

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

a.email-button:visited {
    color: #0a1a1f !important;
}

svg.email-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #0a1a1f;
}

a.email-button span {
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    margin-top: auto;
}

.footer p {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .container {
        padding: var(--space-sm);
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .persian-text {
        font-size: 1.25rem;
        letter-spacing: 0.2em;
    }
    
    .divider-line {
        width: 40px;
    }
    
    .description br {
        display: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    .bg-pattern {
        animation: none;
    }
}

/* Selection Color */
::selection {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}
