/* styles.css (Updated Full Version) */

/* General Reset */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important; /* Fontu sabitledik */
}
body {
    line-height: 1.6;
    color: #333;
    padding-top: 0px; /* Navbar yüksekliğine göre ayarlandı */
}

/* Navbar Styles (WhatsApp Stili) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #075E54; /* WhatsApp koyu yeşil */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px !important; /* Daha sade bir padding */
    overflow: hidden; /* Menü taşmasını önler */
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #E0E0E0 !important; /* WhatsApp tarzı hafif gri hover */
}

.nav-links a.active {
    color: #007bff !important; /* Aktif sekme için mavi renk */
}

/* Giriş Butonu Stili */
.nav-links .login-btn {
    background: #73e4b5; /* Görseldeki pembe renk */
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease;
}

.nav-links .login-btn:hover {
    background: #E04E4E; /* Hover durumunda koyu pembe */
    color: #fff !important;
}

/* Hamburger Menü Butonu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Hero Section (index.php) */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    background: #f8f9fa;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-in-out;
}

.hero-image {
    max-width: 500px;
    animation: slideIn 1s ease-in-out;
}

/* Button Styles (General) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 80px 50px;
    text-align: center;
    background: #fff;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-in-out;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    width: 22%;
    padding: 20px;
    min-width: 250px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item img {
    width: 60px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 50px;
    background: #d8cdcd;
}

.testimonials-container {
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 2px 10px 15px rgba(0, 0, 0, 0.05);
}

.testimonials .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f2a44;
}

.testimonials p {
    font-size: 18px;
    color: #6b7280;
    max-width: 800px;
}

.testimonial-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
}

.testimonial-item {
    width: 25%;
    min-width: 250px;
    padding: 24px;
    background: #eeece6;
    border-radius: 12px;
    box-shadow: 3px 10px 15px rgba(24, 23, 23, 0.05);
    transition: box-shadow 0.3s ease;
}

.testimonial-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.star-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    fill: #f4b400;
    stroke: #f4b400;
}

.star-icon[fill="none"] {
    stroke: #d1d5db;
}

.testimonial-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
}

.testimonial-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2a44;
}

.testimonial-item p {
    font-size: 14px;
    color: #6b7280;
}

.text-saas-blue {
    color: #007bff;
    font-size: 18px;
}

/* Companies Section */
.companies-section {
    margin-top: 40px;
}

.companies-section p {
    font-size: 18px;
    font-weight: 500;
}

.companies-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.company-item {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

/* Advertise Section */
.advertise {
    padding: 80px 0;
}

.header-section {
    background-color: #2C3E50;
    color: #f00202;
    text-align: center;
    padding-top: 80px;
}

.header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-section p {
    font-size: 1.2rem;
    color: #D3D3D3;
}

.content-section {
    padding: 40px 0;
}

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

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.features-list .icon {
    font-size: 24px;
    margin-right: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.features-list li:nth-child(1) .icon {
    background-color: #e6f7e9;
    color: #28a745;
}

.features-list li:nth-child(2) .icon {
    background-color: #e6e6ff;
    color: #6666ff;
}

.features-list li:nth-child(3) .icon {
    background-color: #f5e6ff;
    color: #cc66ff;
}

.pricing-box {
    background-color: #d1bf8d;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.3);
}

.pricing-box p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.pricing-box .price {
    font-size: 18px;
    font-weight: bold;
    color: #288ea7;
}

.stats-section {
    background-color: #2C3E50;
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
}

.stats-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-box p {
    font-size: 1rem;
    color: #D3D3D3;
}

.contact-section {
    padding: 60px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
}

.contact-form {
    background: #f7d2d2;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.contact-form .form-label {
    font-weight: 500;
    color: #333333;
}

.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #D3D3D3;
}

.contact-form .btn-primary {
    background-color: #2ECC71;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
}

.contact-form .btn-primary:hover {
    background-color: #27AE60;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.faq h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f2a44;
}

.faq p {
    font-size: 18px;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2a44;
}

.faq-toggle {
    font-size: 16px;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    text-align: center;
    background: #f8f9fa;
}

.pricing h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.pricing-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
}

.pricing-card {
    width: 25%;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 3px 10px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    min-width: 250px;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border: 2px solid #007bff;
}

.pricing-card h3 {
    background: #e0f7fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #333;
}

.price {
    font-size: 24px;
    color: #007bff;
    margin: 20px 0;
    line-height: 1.5;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
}

.savings {
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-card ul li {
    margin: 10px 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-whatsapp i {
    margin-right: 8px;
}

.btn-whatsapp:hover {
    background-color: #20b956;
}

/* Register Page Specific Styles (register.php ve login.php için) */
.register-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    margin: 70px auto; /* Navbar yüksekliğine göre ayarlandı */
}

.register-container h2 {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.5);
}

.btn-primary {
    background-color: #1e3a8a;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: #172554;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
}

/* Animasyon */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block; /* Mobilde hamburger menü butonu görünür */
    }

    .nav-links {
        display: none; /* Varsayılan olarak menüler gizli */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #075E54; /* WhatsApp koyu yeşil */
        padding: 20px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex; /* Menü açıldığında görünür */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 16px !important;
    }

    .nav-links .login-btn {
        margin: 0 auto;
        width: fit-content;
    }

    .hero {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 20px;
    }

    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
    }

    .testimonial-grid {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-item {
        width: 100%;
        max-width: 350px;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 300px;
    }

    .companies-list {
        gap: 15px;
    }

    .company-item {
        font-size: 14px;
    }

    .faq h2 {
        font-size: 28px;
    }

    .faq p {
        font-size: 16px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-answer p {
        padding: 15px 0;
        margin: 0;
        font-size: 16px;
        color: #6b7280;
        text-indent: 20px; /* Paragraf başı boşluğu */
    }
    
    /* Paragraflar arasında boşluk */
    .faq-answer p + p {
        margin-top: 10px;
    }
}