﻿/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

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

.btn-play {
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.btn-play:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Floating Actions */
.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 998;
    transition: var(--transition);
}

.floating-action-btn:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.audio-btn { left: 2rem; }
.scroll-top-btn { 
    right: 2rem; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Section Layouts */
.section-padding {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.section-header h2 {
    color: var(--text-main);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Apple Pencere (Tema rengine uyumlu, içi beyaz arka plan ve tarayıcı adresi güncellendi) */
.article-window-wrapper {
    margin: 4rem 0;
}

.apple-window {
    background: #FFFFFF;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

.apple-window-header {
    background: #F8F9FA;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.apple-window-dots {
    display: flex;
    gap: 8px;
}

.apple-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.apple-window-title {
    font-size: 0.85rem;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 4px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.apple-window-body {
    padding: 2rem;
    max-height: 220px;
    max-height: 62vh;
    max-height: 62dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #FFFFFF;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--border-color);
}

.apple-window-body::-webkit-scrollbar {
    width: 6px;
}

.apple-window-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.scrolling-article-content h2 {
    color: var(--text-main);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.scrolling-article-content h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.scrolling-article-content h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.scrolling-article-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness Fixes */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    
    .logo-icon-wrapper { width: 34px; height: 34px; border-radius: 10px; }
    .logo-sparkle { width: 18px; height: 18px; }
    .logo-text-piril { font-size: 1.6rem; letter-spacing: -1px; }
    .logo-separator { height: 1.5rem; width: 2px; }
    .logo-text-hali { font-size: 0.65rem; letter-spacing: 1px; }
    
    header .logo-subtext {
        display: block;
        font-size: 0.62rem;
        max-width: 11.5rem;
        overflow: visible;
        white-space: normal;
        line-height: 1.3;
        text-overflow: unset;
    }

    .logo-main-wrapper {
        min-width: 0;
    }

    .hero { padding-top: calc(var(--header-height) + var(--top-bar-height) + 2.75rem); padding-bottom: 4rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-padding { padding: 3.25rem 0; }

    .section-header {
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .services-grid, 
    .detail-row, 
    .contact-grid, 
    .footer-grid,
    .process-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .process-box { padding: 2.25rem 1.25rem; }

    .detail-row:nth-child(even) .detail-content,
    .detail-row:nth-child(odd) .detail-content { order: 2; }
    .detail-row:nth-child(even) .detail-image,
    .detail-row:nth-child(odd) .detail-image { order: 1; margin-bottom: 0; }

    .detail-image-box, .video-preview-box { height: 250px; }
    .map-container { height: 300px; min-height: 300px; }

    .mobile-cta { display: block; }
    
    .video-close { top: -40px; right: 10px; }
    
    .audio-btn { left: 1rem; bottom: 95px; } 
    .scroll-top-btn { right: 1rem; bottom: 95px; }

    .article-window-wrapper {
        margin: 2.5rem 0;
    }

    .apple-window-title {
        max-width: 58%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .apple-window-body {
        padding: 1.25rem;
        max-height: 70vh;
        max-height: 70dvh;
    }

    .scrolling-article-content h2 {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        min-height: 48px;
    }

    .top-bar-text {
        font-size: 0.75rem;
        padding: 0 2.25rem;
        text-align: center;
    }
}

@media (max-width: 420px) {
    header .logo-subtext {
        display: block;
        max-width: 10.5rem;
        font-size: 0.58rem;
    }
}

@media (max-width: 380px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.65rem; }
    header .logo-text-piril { font-size: 1.35rem; }
    header .logo-text-hali { font-size: 0.58rem; }
    .container { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
}

