/* 
 * Psikolog Web Sitesi - Custom CSS
 * Renk Paleti: Soft mavi, yeşil, bej, beyaz
 */

:root {
    --primary-color: #5B8FB9;
    --secondary-color: #301E67;
    --accent-color: #B6EADA;
    --success-color: #16a085;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Genel Stiller */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--secondary-color);
}

.hero-section .text-primary {
    color: var(--primary-color) !important;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Buttons */
.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Expertise Cards */
.expertise-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.expertise-card:hover .expertise-icon {
    background: var(--primary-color);
    color: white;
}

.expertise-card:hover .expertise-icon i {
    color: white !important;
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar img {
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: 3px solid var(--accent-color);
}

/* Blog Cards */
.blog-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Profesyonel Footer Düzenlemesi --- */
footer {
    background-color: #1a1d20 !important; /* Koyu modern bir gri-siyah */
    color: #ffffff !important;
}

/* Başlıklar için tam beyaz */
footer h5, footer h6 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Normal metinler ve açıklamalar için beyazın %75 şeffaf hali */
footer p, footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Linkler için */
footer a.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a.text-muted:hover {
    color: #007bff !important; /* Temanın ana rengi neyse ona çekebilirsin */
    padding-left: 5px; /* Hafif bir hareket efekti */
}

/* Sosyal Medya İkonları */
.social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background: #007bff; /* Hover rengi */
    transform: translateY(-3px) scale(1.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* About Page */
.about-section {
    padding: 80px 0;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.about-content ul li {
    padding: 5px 0;
}

.about-content .fas {
    color: var(--primary-color);
}

/* Blog Page */
.blog-page .card {
    border-radius: 15px;
    overflow: hidden;
}

.blog-detail .blog-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-detail .blog-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.blog-detail .blog-meta {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-detail .blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-detail .blog-content h2,
.blog-detail .blog-content h3,
.blog-detail .blog-content h4 {
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
}

.blog-detail .blog-content p {
    margin-bottom: 15px;
}

.blog-detail .blog-content ul,
.blog-detail .blog-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info .info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 143, 185, 0.25);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: var(--light-color);
    color: var(--secondary-color);
    font-weight: 500;
    border: none;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 20px;
    background: white;
}

/* Expertise Detail Page */
.expertise-detail {
    padding: 80px 0;
}

.expertise-detail .expertise-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.expertise-detail .expertise-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Page Template */
.page-template {
    padding: 80px 0;
}

.page-template h2,
.page-template h3,
.page-template h4 {
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
}

.page-template p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 143, 185, 0.25);
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Pagination */
.pagination .page-link {
    border-radius: 50px;
    margin: 0 5px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    footer {
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 20px;
    }
}

/* Scroll Animation */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

/* Print Styles */
@media print {
    .whatsapp-btn,
    .navbar,
    footer {
        display: none !important;
    }
}
