/* ==========================================================================
   DR. MCY DIJITAL PORTAL - TASARIM SISTEMI VE STIL DOSYASI (styles.css)
   ========================================================================== */

/* 1. DEĞİŞKENLER VE TEMEL AYARLAR */
:root {
    /* Genel Renk Paleti (Sophisticated Dark) */
    --bg-base: #070b13;
    --bg-surface: rgba(15, 23, 42, 0.45);
    --bg-surface-hover: rgba(20, 31, 58, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Font Tanımlamaları */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    /* WhatsApp Renk Standartları */
    --wa-green: #25d366;
    --wa-green-hover: #128c7e;
    
    /* MARKA BAZLI RENK DOKULARI VE GRADYANLARI (HSL) */
    /* 1. Mesut Cevdet Yavuz (Emerald/Teal) */
    --color-emerald: #10b981;
    --grad-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --shadow-emerald: rgba(16, 185, 129, 0.25);

    /* 2. Reflex Turkey (Cobalt Blue) */
    --color-blue: #3b82f6;
    --grad-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --shadow-blue: rgba(59, 130, 246, 0.25);

    /* 3. Reflex Eğitim (Indigo) */
    --color-indigo: #6366f1;
    --grad-indigo: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --shadow-indigo: rgba(99, 102, 241, 0.25);

    /* 4. AI DrMCY (Purple) */
    --color-purple: #8b5cf6;
    --grad-purple: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --shadow-purple: rgba(139, 92, 246, 0.25);

    /* 5. Site DrMCY (Amber/Gold) */
    --color-amber: #f59e0b;
    --grad-amber: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --shadow-amber: rgba(245, 158, 11, 0.25);

    /* 6. Shop DrMCY (Rose) */
    --color-rose: #f43f5e;
    --grad-rose: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    --shadow-rose: rgba(244, 63, 94, 0.25);
    
    /* Ortak Efekt Değerleri */
    --blur-intensity: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. SIFIRLAMA (RESET) VE GENEL ELEMENTLER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Kapsayıcı (Container) */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. ARKA PLAN GLOW EFEKTLERİ */
.bg-glow {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    animation: glow-float 20s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: var(--color-indigo);
    top: -10%;
    left: -10%;
}

.bg-glow-2 {
    background: var(--color-emerald);
    top: 40%;
    right: -10%;
    animation-delay: -5s;
}

.bg-glow-3 {
    background: var(--color-purple);
    bottom: -10%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes glow-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 8%) scale(1.15);
    }
}

/* 4. HEADER (ÜST BİLGİ) */
.header {
    background: rgba(7, 11, 19, 0.75);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: block;
    text-decoration: none;
}

/* Logo Resmi Ayarı */
.brand-logo-img {
    height: 120px;
    width: 120px;
    display: block;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Dil Seçici Dropdown Tasarımı */
.lang-selector-wrapper {
    position: relative;
    margin-right: 16px;
}

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 32px 8px 14px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.lang-select:hover, .lang-select:focus {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: var(--border-hover);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.lang-select option {
    background-color: #0c1322;
    color: var(--text-primary);
    padding: 12px;
}

/* 5. BUTONLAR (BUTTONS) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

/* Header WhatsApp Butonu */
.btn-whatsapp-header {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: var(--wa-green);
}

.btn-whatsapp-header:hover {
    background: var(--wa-green);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* Kart Ziyaret Butonu */
.btn-visit {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    flex-grow: 1;
}

.btn-visit:hover {
    background: #ffffff;
    color: #070b13;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.08);
}

/* Kart WhatsApp Butonu (İkonlu Kare Buton) */
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: var(--wa-green);
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    font-size: 1.25rem;
}

.btn-whatsapp:hover {
    background: var(--wa-green);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

/* Pasif Buton */
.btn-disabled {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    transform: none;
    box-shadow: none;
}

/* 6. KAHRAMAN ALANI (HERO SECTION) */
.hero {
    padding: 60px 0 50px 0;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 900px;
}

.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 7. FAALİYET KARTLARI GRİDİ (PORTAL GRID) */
.portal-grid-section {
    padding: 10px 0 100px 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

/* KART GENEL (CARD CONTAINER) */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

/* Kart Hover Efektleri */
.card:hover {
    transform: translateY(-8px);
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

/* Marka Bazlı Kart Hover Işımaları (Glow Shadows) */
.card-emerald:hover { box-shadow: 0 20px 40px -15px var(--shadow-emerald); }
.card-blue:hover { box-shadow: 0 20px 40px -15px var(--shadow-blue); }
.card-indigo:hover { box-shadow: 0 20px 40px -15px var(--shadow-indigo); }
.card-purple:hover { box-shadow: 0 20px 40px -15px var(--shadow-purple); }
.card-amber:hover { box-shadow: 0 20px 40px -15px var(--shadow-amber); }
.card-rose:hover { box-shadow: 0 20px 40px -15px var(--shadow-rose); }

/* Kart Görsel Bölgesi */
.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Kart Üstündeki Rozet */
.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(7, 11, 19, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.coming-soon-badge {
    background: rgba(244, 63, 94, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Kart İçeriği */
.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Kart Marka Başlığı */
.card-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.card:hover .card-logo {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-logo svg {
    width: 100%;
    height: 100%;
}

.card-brand-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hover'da sitenin renginde başlık parlama efekti */
.card-emerald:hover .card-title { color: var(--color-emerald); }
.card-blue:hover .card-title { color: var(--color-blue); }
.card-indigo:hover .card-title { color: var(--color-indigo); }
.card-purple:hover .card-title { color: var(--color-purple); }
.card-amber:hover .card-title { color: var(--color-amber); }
.card-rose:hover .card-title { color: var(--color-rose); }

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Kart Açıklama Paragrafı */
.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Kart Alt Buton Grubu */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* 8. YÜZEN WHATSAPP WIDGET (FLOATING WIDGET) */
.wa-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.wa-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--wa-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.wa-button:hover {
    background-color: var(--wa-green-hover);
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* Halka Nabız Dalgalanması (Pulse Ring) */
.wa-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--wa-green);
    opacity: 0.4;
    z-index: -1;
    animation: wa-pulse-ring 2s infinite ease-out;
}

@keyframes wa-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* WhatsApp Tooltip Bilgi Baloncuğu */
.wa-tooltip {
    position: absolute;
    right: 76px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    white-space: nowrap;
    pointer-events: none;
}

.wa-tooltip-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.wa-widget:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 9. ALT BİLGİ (FOOTER) */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    background: rgba(7, 11, 19, 0.9);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contacts {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* SOSYAL MEDYA İKONLARI */
.footer-right {
    display: flex;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

/* Instagram Hover Gradyanı */
.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
    border-color: transparent;
}

/* YouTube Hover Kırmızısı */
.social-youtube:hover {
    background: #ff0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
    border-color: transparent;
}

/* LinkedIn Hover Mavisi */
.social-linkedin:hover {
    background: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.35);
    border-color: transparent;
}

/* ==========================================================================
   10. ARAPÇA (RTL) MODU İÇİN ÖZEL DÜZENLEMELER
   ========================================================================== */
.rtl-active {
    text-align: right;
}

.rtl-active .header-container {
    flex-direction: row-reverse;
}

.rtl-active .header-actions {
    flex-direction: row-reverse;
}

.rtl-active .lang-selector-wrapper {
    margin-right: 0;
    margin-left: 16px;
}

.rtl-active .lang-select {
    padding: 8px 14px 8px 32px;
    background-position: left 12px center;
}

.rtl-active .btn {
    flex-direction: row-reverse;
}

.rtl-active .card-badge {
    left: auto;
    right: 16px;
}

.rtl-active .card-brand {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-active .card-brand-info {
    align-items: flex-end;
}

.rtl-active .wa-widget {
    right: auto;
    left: 32px;
}

.rtl-active .wa-tooltip {
    right: auto;
    left: 76px;
    transform: translateX(-10px);
}

.rtl-active .wa-widget:hover .wa-tooltip {
    transform: translateX(0);
}

.rtl-active .footer-container {
    flex-direction: row-reverse;
}

.rtl-active .footer-left {
    align-items: flex-end;
}

.rtl-active .footer-contacts {
    flex-direction: row-reverse;
}

/* ==========================================================================
   11. MOBİL RESPONSIVE (MEDYA SORGULARI)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .brand-logo-img {
        height: 80px;
        width: 80px;
    }
    
    .lang-select {
        padding: 6px 26px 6px 10px;
        font-size: 0.8rem;
        background-position: right 8px center;
        background-size: 12px;
    }
    
    .lang-selector-wrapper {
        margin-right: 10px;
    }

    .rtl-active .lang-select {
        padding: 6px 10px 6px 26px;
        background-position: left 8px center;
    }
    
    .btn-whatsapp-header {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 40px 0 30px 0;
    }
    
    .hero-title {
        font-size: 2.15rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card-image-wrapper {
        height: 180px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .rtl-active .footer-container {
        flex-direction: column;
    }

    .footer-left {
        align-items: center;
    }

    .rtl-active .footer-left {
        align-items: center;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .rtl-active .footer-contacts {
        flex-direction: column;
        align-items: center;
    }

    .wa-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-button {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .wa-tooltip {
        display: none; /* Mobilde tooltip gösterilmesin */
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 14px;
    }

    .rtl-active .header-container {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rtl-active .card-brand {
        flex-direction: column;
        align-items: flex-end;
    }

    .card-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 6px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-whatsapp {
        width: 100%;
        height: 44px;
        border-radius: 12px;
    }
}
