/* Modern ve Responsive Tasarım */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00a8e8;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.contact-card-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.3);
}

/* Navigation */
nav {
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Logo Banner Fluid */
.logo-banner-fluid {
    width: 100%;
    background: white;
    padding: 1.2rem 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    max-height: 180px;
}

.logo-banner-img {
    width: auto;
    max-width: 600px;
    height: 150px;
    display: block;
    object-fit: contain;
    object-position: center;
    animation: zoomBounce 1s ease-out;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

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

/* Sections */
section {
    padding: 4rem 0;
    overflow-x: hidden;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Announcements Slider */
.announcements-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 60px 60px 60px;
}

.announcements-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.announcements-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.announcement-slide-card {
    min-width: 100%;
    flex-shrink: 0;
    background: transparent;
}

.announcement-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.announcement-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    background: #f8f9fa;
}

.announcement-slide-card:hover .announcement-image {
    transform: scale(1.05);
}

.badge-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.announcement-text {
    padding: 1rem 0.5rem;
}

.announcement-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    word-wrap: break-word;
}

.announcement-text p {
    color: var(--dark-color);
    line-height: 1.8;
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.announcement-date {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 100;
}

.slider-prev-btn {
    left: 0;
}

.slider-next-btn {
    right: 0;
}

.slider-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0,102,204,0.4);
}

/* Slider Indicators (Dots) */
.slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-indicator:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.slider-indicator.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 6px;
}

/* Personnel */
.personnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.personnel-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.personnel-card .title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.personnel-card .name {
    font-size: 1.3rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.personnel-card .ase {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background: var(--primary-color);
    color: var(--white);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card:hover i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card:hover h3 {
    color: var(--white);
}

/* Contact Form */
.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    padding: 0;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--white);
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal .appointment-form {
    padding: 2rem;
    box-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .personnel-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .announcement-card,
    .personnel-card,
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo p {
        font-size: 0.8rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    nav {
        padding: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }

    .logo-banner-fluid {
        padding: 1rem 0;
        max-height: 150px;
    }
    
    .logo-banner-img {
        height: 130px;
        max-width: 500px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }

    /* Duyurular Slider Responsive */
    .announcements-slider-container {
        padding: 0 50px 50px 50px;
    }
    
    .announcement-image {
        height: 350px;
    }
    
    .announcement-text h3 {
        font-size: 1.5rem;
    }
    
    .announcement-text p {
        font-size: 1rem;
    }
    
    .slider-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .personnel-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .personnel-card,
    .service-card {
        padding: 1.2rem;
    }

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

    .appointment-form {
        padding: 1.5rem;
    }

    /* Çalışma saatleri tablosu */
    .calisma-tablosu {
        font-size: 0.75rem;
    }

    .calisma-tablosu th,
    .calisma-tablosu td {
        padding: 0.5rem 0.3rem;
    }

    .calisma-tablosu .hekim-adi {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.1rem;
    }

    .logo p {
        font-size: 0.75rem;
    }

    .contact-info {
        font-size: 0.8rem;
    }

    .logo-banner-fluid {
        padding: 0.8rem 0;
        max-height: 130px;
    }
    
    .logo-banner-img {
        height: 110px;
        max-width: 450px;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* Duyurular Slider Küçük Ekranlar */
    .announcements-slider-container {
        padding: 0 40px 40px 40px;
    }
    
    .announcement-image {
        height: 280px;
    }
    
    .announcement-text {
        padding: 0.8rem 0;
    }
    
    .announcement-text h3 {
        font-size: 1.3rem;
    }
    
    .announcement-text p {
        font-size: 0.95rem;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .slider-indicator.active {
        width: 30px;
    }
    
    .personnel-card .name,
    .service-card h3 {
        font-size: 1rem;
    }

    /* Çalışma saatleri tablosu - ekstra küçük ekranlar */
    .calisma-tablosu table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calisma-tablosu th,
    .calisma-tablosu td {
        white-space: nowrap;
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

