/* ==========================================
   AI EDUCATION IRELAND - MAIN STYLES
   ========================================== */

/* CSS Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --orange-500: #f97316;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--slate-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
}

.header-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.plant-icon {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 32px;
    opacity: 0.6;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate-800);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.url-display {
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 400;
}

/* Main Hero Section */
.hero {
    padding: 40px 0 30px;
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 7vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .secondary {
    color: var(--slate-600);
    display: block;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--slate-600);
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Signup Form Styles */
.signup-container {
    margin-bottom: 16px;
}

.signup-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--slate-200);
    border-radius: 12px;
    font-size: 16px;
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
}

.email-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.email-input::placeholder {
    color: var(--slate-400);
}

.signup-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.signup-btn:hover::before {
    left: 100%;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.signup-btn:active {
    transform: translateY(0);
}

.signup-btn.loading {
    pointer-events: none;
    color: transparent;
}

.signup-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--slate-300);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

.signup-btn.success {
    background: var(--emerald-600);
}

.signup-btn.success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 18px;
}

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

.subscriber-count {
    font-size: 16px;
    color: var(--slate-600);
    font-weight: 500;
    margin-bottom: 16px;
}

.preview-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.preview-link:hover {
    color: var(--primary-blue-dark);
}

.preview-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.preview-link:hover::after {
    width: 100%;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 2px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--slate-600);
    font-weight: 500;
}

.trust-icon {
    font-size: 16px;
}

/* Preview Section */
.preview-section {
    background: var(--slate-50);
    border-radius: 16px;
    padding: 40px;
    margin: 60px 0;
    border: 1px solid var(--slate-200);
}

.preview-header {
    text-align: center;
    margin-bottom: 32px;
}

.preview-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.preview-date {
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 500;
}

.preview-content {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
}

.preview-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.2s ease;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item:hover {
    background: var(--slate-50);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
}

.preview-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.preview-headline {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 4px;
    line-height: 1.4;
}

.preview-description {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.5;
}

/* Resource Grid Preview */
.resource-grid {
    background: var(--slate-50);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    border: 1px solid var(--slate-200);
}

.resource-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 16px;
}

.resource-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    padding: 12px 0;
    font-size: 14px;
    align-items: center;
}

.resource-name {
    font-weight: 600;
    color: var(--slate-800);
}

.resource-url {
    color: var(--primary-blue);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
}

.resource-category {
    background: var(--slate-200);
    color: var(--slate-700);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.resource-category.research {
    background: #fef3c7;
    color: #92400e;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--slate-200);
    margin-top: 80px;
}

.footer-content {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f97316;
}

.footer-tagline {
    margin-bottom: 8px;
    font-weight: 500;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.email-input:focus,
.signup-btn:focus,
.preview-link:focus,
.footer-links a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --slate-600: #000000;
        --slate-700: #000000;
        --slate-800: #000000;
    }
}