/* ====================================
   37 Bilişim Destek Merkezi - CSS
   ==================================== */

/* === Genel Stiller === */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #25d366;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* === Ana Sayfa Stilleri === */
.hero-section {
    padding: 3rem 0 2rem;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.support-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.support-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.whatsapp-icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.email-icon { background: linear-gradient(135deg, #ea4335, #c5221f); }
.chat-icon { background: linear-gradient(135deg, #00b5ff, #0082c8); }
.ticket-icon { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); }
.phone-icon { background: linear-gradient(135deg, #4caf50, #388e3c); }
.academy-icon { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.meet-icon { background: linear-gradient(135deg, #0f9d58, #0d7d47); }

.support-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.support-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.support-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    color: white;
    transform: scale(1.05);
}

.btn-email {
    background: linear-gradient(135deg, #ea4335, #c5221f);
    color: white;
}

.btn-email:hover {
    background: linear-gradient(135deg, #c5221f, #ea4335);
    color: white;
    transform: scale(1.05);
}

.btn-chat {
    background: linear-gradient(135deg, #00b5ff, #0082c8);
    color: white;
}

.btn-chat:hover {
    background: linear-gradient(135deg, #0082c8, #00b5ff);
    color: white;
    transform: scale(1.05);
}

.btn-ticket {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.btn-ticket:hover {
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
    color: white;
    transform: scale(1.05);
}

.btn-phone {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.btn-phone:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    color: white;
    transform: scale(1.05);
}

.btn-academy {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.btn-academy:hover {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    color: white;
    transform: scale(1.05);
}

.btn-meet {
    background: linear-gradient(135deg, #0f9d58, #0d7d47);
    color: white;
}

.btn-meet:hover {
    background: linear-gradient(135deg, #0d7d47, #0f9d58);
    color: white;
    transform: scale(1.05);
}

.priority-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-wrapper {
    position: relative;
}

/* === Tawk Sayfası Stilleri === */
body.tawk-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.tawk-page html {
    overflow: hidden;
}

.tawk-wrapper {
    width: 80%;
    height: 80%;
    max-width: 1200px;
    max-height: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.back-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 999999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.back-btn:hover {
    transform: scale(1.08);
    color: white;
    box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

#tawk_5f637bdc4704467e89efe0ff {
    width: 100%;
    height: 100%;
    position: relative;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.reload-link {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reload-link:hover {
    color: #764ba2;
    text-decoration: none;
}

.refresh-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: none;
}

.refresh-info.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.error-info {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.error-info.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.error-info p {
    color: #842029;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.home-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.refresh-info p {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.loading-dots {
    display: inline-block;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* === Footer Stilleri === */
.company-footer {
    background: rgba(255, 255, 255, 0.95);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.footer-section {
    padding: 1rem;
}

.footer-section h4 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    color: #667eea;
    font-size: 1.4rem;
}

.address-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info p i {
    color: #667eea;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.contact-info p a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: #667eea;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* === Responsive Tasarım === */
@media (max-width: 768px) {
    /* Ana Sayfa Responsive */
    .hero-section h1 {
        font-size: 2rem;
    }

    .support-card {
        padding: 1.5rem;
    }

    .support-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    /* Footer Responsive */
    .company-footer {
        margin-top: 3rem;
        padding: 2rem 0 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        justify-content: center;
        font-size: 1.2rem;
    }

    .contact-info p {
        justify-content: center;
    }

    .map-btn {
        margin-bottom: 1rem;
    }

    /* Tawk Sayfası Responsive */
    body.tawk-page {
        padding: 10px;
    }

    .tawk-wrapper {
        width: 95%;
        height: 90%;
        border-radius: 15px;
    }

    .back-btn {
        top: 10px;
        right: 10px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .loading-content h2 {
        font-size: 1.2rem;
    }

    .loading-content p {
        font-size: 0.9rem;
    }

    .refresh-btn, .home-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}
