/* AI2Mail - Shared Styles */

/* Reset and Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f9fafb;
    color: #374151;
    line-height: 1.6;
}

/* Header */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #667eea;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: white;
}
.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 24px;
    text-align: center;
    color: white;
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero .btn {
    padding: 16px 40px;
    font-size: 18px;
    background: white;
    color: #667eea;
}
.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Features */
.features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.features h2 {
    text-align: center;
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 60px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.feature-card h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 12px;
}
.feature-card p {
    color: #6b7280;
}

/* Plans */
.plans {
    background: #f3f4f6;
    padding: 80px 24px;
}
.plans h2 {
    text-align: center;
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 20px;
}
.plans-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 60px;
    font-size: 18px;
}
.plans-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.plan-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s;
}
.plan-card:hover {
    transform: translateY(-5px);
}
.plan-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}
.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.plan-price {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}
.plan-price span {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}
.plan-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}
.plan-features li {
    padding: 10px 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 12px;
}
.plan-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
}
.plan-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.plan-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.plan-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.plan-btn-outline {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}
.plan-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* About */
.about {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}
.about h2 {
    text-align: center;
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 40px;
}
.about-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.about-content p {
    color: #4b5563;
    font-size: 18px;
    margin-bottom: 24px;
}
.about-content p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 60px 24px 30px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}
.footer-section p {
    color: #9ca3af;
    padding: 6px 0;
}
.footer-section a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer-section a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #6b7280;
}

/* Content Page Styles */
.content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 24px;
}
.content h1 {
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 10px;
}
.last-updated {
    color: #6b7280;
    margin-bottom: 40px;
}
.content h2 {
    font-size: 24px;
    color: #1f2937;
    margin-top: 40px;
    margin-bottom: 16px;
}
.content p {
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.8;
}
.content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}
.content li {
    margin-bottom: 8px;
    color: #4b5563;
}
.content-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 30px 24px;
    text-align: center;
    margin-top: 80px;
}
.content-footer a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 16px;
}
.content-footer a:hover {
    color: white;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 440px;
    padding: 40px;
}
.form-logo {
    text-align: center;
    margin-bottom: 30px;
}
.form-logo h1 {
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
}
.form-logo p {
    color: #6b7280;
    margin-top: 8px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}
.checkbox-group input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}
.checkbox-group label {
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}
.checkbox-group a {
    color: #667eea;
}
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}
.form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    background: #1f2937;
    color: white;
    padding: 20px 0;
}
.sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid #374151;
    margin-bottom: 20px;
}
.sidebar-logo a {
    color: #667eea;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    max-width: none;
}
.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #374151;
    color: white;
}
.main-content {
    flex: 1;
    padding: 30px;
    background: #f9fafb;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.main-header h1 {
    font-size: 28px;
    color: #1f2937;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.card h2 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 16px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-card h3 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}
.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .features h2, .plans h2, .about h2 {
        font-size: 28px;
    }
    .plan-card.featured {
        transform: none;
    }
    .sidebar {
        display: none;
    }
}
