/* ================================================
   Anne Takip - Gebelik Takip Sistemi CSS
   Responsive & SEO-Optimized Styling
   ================================================ */

/* Root Variables */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #212529;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #212529;
    line-height: 1.6;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    color: #6c757d;
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #bb2d3b;
}

/* Navigation Bar */
.navbar {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    filter: brightness(0.9);
}

.hero-image {
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.nav-link {
    color: #495057 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.hero-section h1 {
    color: #212529;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.hero-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-danger {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-danger {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Feature Cards */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color);
}

.feature-card i {
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Calculator Section */
.calculator-section {
    padding: 5rem 0;
    background: white;
}

.card {
    border: none;
}

.card-header {
    border: none;
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    color: #212529;
    font-weight: 600;
}

#results {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results.d-none {
    display: none !important;
}

/* Info Section */
.info-section {
    padding: 5rem 0;
}

.info-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg) !important;
}

.badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color) !important;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: white;
}

.accordion-button {
    background: white;
    color: #212529;
    border: 1px solid #dee2e6;
    padding: 1.25rem;
    border-radius: 0.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: #fff3cd;
    color: #212529;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

.accordion-body {
    color: #6c757d;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    padding: 5rem 0;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f8f9fa;
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background-color: #212529;
    padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: white;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer hr {
    border-top: 1px solid #495057;
}

/* Footer Logo */
.footer-logo {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .calculator-section,
    .info-section,
    .faq-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .nav-link {
        padding: 0.5rem 0.5rem !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .container-fluid {
        padding: 0 0.75rem;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* Utility Classes */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Haftalık Detay Bilgileri Stil */
#weeklyDetails {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#weeklyDetails.d-none {
    display: none !important;
}

#weeklyDetails h5 {
    color: #212529;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#weeklyDetails h6 {
    color: #212529;
    font-weight: 600;
}

#weeklyDetails ul {
    padding-left: 1.5rem;
}

#weeklyDetails li {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

#weeklyDetails .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}

#weeklyDetails p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#weeklyDetails .alert-primary {
    border-left: 4px solid var(--primary-color);
}
/* Improved Result Display Styles */
#results {
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results .border-start {
    transition: all 0.3s ease;
}

#results .border-start:hover {
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#results h4 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

#results small {
    font-weight: 500;
    letter-spacing: 0.3px;
}

#weeklyDetails .row {
    margin-top: 2rem;
}

#weeklyDetails .bg-light {
    background-color: #f8f9fa !important;
    border-radius: 0.5rem;
    padding: 1.5rem !important;
}

#weeklyDetails h5 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Emoji and icon adjustments */
#weeklyDetails h6::before {
    margin-right: 0.5rem;
}

.alert-info strong {
    color: #004085;
}

/* Detailed Result Sections */
.section-box {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.section-box:hover {
    background-color: #f0f0f0;
}

.section-box h6 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-box .badge {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    margin: 0.3rem;
    border-radius: 50px;
}

.bg-danger-light {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

#weeklyDetails .card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

#weeklyDetails .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

#weeklyDetails .card-header {
    padding: 1.5rem;
    border: none;
}

#weeklyDetails .card-header h5 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.25rem;
}

#weeklyDetails .card-header i {
    margin-right: 0.5rem;
}

#weeklyDetails .list-group-item {
    background: transparent;
    padding: 0.75rem 0;
    border-top: 1px solid #e9ecef;
}

#weeklyDetails .list-group-item:first-child {
    border-top: none;
}

#weeklyDetails .border-start {
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* Sağlık Terimleri Sayfası */
.term-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
}

.term-card h5 {
    transition: color 0.3s ease;
}

.term-card:hover h5 {
    color: var(--primary-color) !important;
}

.terms-group {
    margin-bottom: 2rem;
}

/* Doktor Bulucu Sayfası */
.doctor-card {
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.doctor-card .card-header {
    border-bottom: 3px solid var(--primary-color);
}

.doctor-card .alert {
    border-radius: 0.5rem;
}

/* Forum Sayfası */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.topic-box {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.topic-box:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.avatar-circle {
    font-size: 1.5rem;
}

.topic-box a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.topic-box:hover a {
    color: var(--primary-color);
}

.rule-box {
    transition: all 0.3s ease;
}

.rule-box:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

/* Genel Card Hover Efektleri */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Info Box Stili */
.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px);
}

/* Hafta Linki Stili - Gebelik Bilgisi Sayfası */
.week-link {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.week-link:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.week-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.week-link.active:hover {
    background-color: #c82333 !important;
}

