/* Homepage Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding-top: 80px; /* Account for fixed header */
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.aanmelden-btn, .login-btn {
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.aanmelden-btn {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
}

.aanmelden-btn.admin-btn {
    margin-right: 10px;
}

.aanmelden-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.login-btn {
    color: #2563eb;
    border: 2px solid #e2e8f0;
    background: transparent;
}

.login-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 80px); /* Account for header height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Pull up to account for body padding */
    padding-top: 80px; /* Add padding to push content down */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-primary {
    background: #ffffff;
    color: #2563eb;
    border-color: #ffffff;
}

.cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background: #f8fafc;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Tools Section */
.tools {
    padding: 5rem 5%;
    background: white;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    font-size: 2rem;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: #2563eb;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-badge.premium {
    background: #7c3aed;
}

.tool-badge.demo {
    background: #059669;
}

/* News Section */
.news {
    padding: 5rem 5%;
    background: #f8fafc;
}

.news-container {
    max-width: 1000px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
}

.news-image.no-image {
    background: linear-gradient(45deg, #f0f2f5, #e4e8ec);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Interactive Demo */
.interactive-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.interactive-demo.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.interactive-demo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-section > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #2563eb;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
    background: #f8fafc;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
    transform: translateY(-5px);
    position: relative;
}

.pricing-card.featured:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.pricing-card.featured::before {
    content: "Populair";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card.featured h3 {
    color: white;
}

.pricing-card.featured .price {
    color: #60a5fa;
}

.pricing-card.featured .price span {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.price span {
    font-size: 1.1rem;
    font-weight: 400;
    color: #64748b;
}

.pricing-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
    margin-top: auto;
}

/* Remove duplicate pricing rules - using CTA section pricing cards only */

/* CTA Primary Button */
.cta-primary {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #2563eb;
}

.cta-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.footer-section a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2563eb;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section input {
    padding: 0.75rem;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #334155;
    color: white;
    width: 200px;
    margin-right: 0.5rem;
}

.footer-section button {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-section button:hover {
    background: #1d4ed8;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: #94a3b8;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Smaller header on mobile */
    }
    
    .hero {
        margin-top: -70px;
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    nav {
        padding: 0.75rem 3%;
        position: relative;
    }
    
    .nav-links {
        display: none !important; /* Hidden by default on mobile, JS will override */
    }
    
    /* Hide header buttons on mobile - they'll appear in the mobile menu */
    .header-buttons {
        display: none !important;
    }
    
    /* Ensure mobile menu button is visible and properly positioned */
    nav button[aria-label*="Menu"] {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #333;
        cursor: pointer;
        margin-left: auto;
        order: 3;
        z-index: 1001;
        padding: 0.25rem;
    }
    
    /* When mobile menu is open, override the display rule */
    .nav-links.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* Style for mobile header buttons in the menu */
    .mobile-header-buttons a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        margin: 0.25rem 0;
    }
    
    /* Specific styling for Aanmelden and Admin buttons in mobile menu */
    .mobile-header-buttons a.aanmelden-btn,
    .mobile-header-buttons a.admin-btn {
        background: #2563eb !important;
        color: white !important;
        border: 2px solid #2563eb !important;
    }
    
    /* Login/Logout button styling in mobile menu */
    .mobile-header-buttons a.login-btn {
        color: #2563eb !important;
        border: 2px solid #e2e8f0 !important;
        background: transparent !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .tools-grid,
    .pricing-cards,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Register Page Styles */
.register-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.register-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
    text-align: center;
}

/* Plan Selection Styles */
.plan-selection {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.plan-selection h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.selected-plan-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-header span:first-child {
    font-size: 1.3rem;
    font-weight: 700;
}

.plan-header span:last-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.plan-details {
    font-size: 0.95rem;
    opacity: 0.9;
}

.plan-change {
    margin-top: 1rem;
}

.plan-change label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.plan-change select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1e293b;
    transition: border-color 0.3s ease;
}

.plan-change select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Styles */
.register-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-link p {
    color: #64748b;
    margin-bottom: 0;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Mobile responsive for register page */
@media (max-width: 768px) {
    .register-container {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
    
    .register-container h1 {
        font-size: 1.75rem;
    }
    
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .hero {
        margin-top: -60px;
        padding-top: 60px;
    }
    
    nav {
        padding: 0.5rem 3%;
    }
    
    /* Ensure hamburger menu is visible on smallest screens */
    nav button[aria-label*="Menu"] {
        display: block !important;
        font-size: 1.6rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features,
    .tools,
    .news,
    .cta-section {
        padding: 3rem 3%;
    }
    
    .feature-card,
    .tool-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        min-height: 220px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }
    
    .pricing-card {
        min-height: 260px;
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .pricing-card {
        min-height: 240px;
        padding: 2rem 1.5rem;
    }
    
    .pricing-card h3 {
        font-size: 1.4rem;
    }
    
    .price {
        font-size: 2rem;
    }
}
