/* ========== WHATSAPP BUSINESS API HABER SAYFASI - ÖZEL STILLER ========== */
/* Header, footer ve genel stiller style.css'den gelir */

/* HERO BANNER - HABER TEMALI */
.api-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2a2a 0%, #1a4a3a 50%, #0a2a2a 100%);
}

.api-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(34,197,94,0.12), rgba(20,184,166,0.05));
    pointer-events: none;
}

.api-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.api-hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(34,197,94,0.5);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.api-hero-particles .particle:nth-child(1) { top: 15%; left: 10%; animation-duration: 7s; }
.api-hero-particles .particle:nth-child(2) { top: 45%; left: 85%; animation-duration: 11s; }
.api-hero-particles .particle:nth-child(3) { top: 65%; left: 20%; animation-duration: 9s; }
.api-hero-particles .particle:nth-child(4) { top: 25%; left: 70%; animation-duration: 13s; }
.api-hero-particles .particle:nth-child(5) { top: 80%; left: 50%; animation-duration: 8s; }

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.api-hero-content {
    position: relative;
    max-width: 800px;
    padding: 80px 24px;
    z-index: 10;
}

.api-badge {
    display: inline-block;
    background: rgba(34,197,94,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #4ade80;
    margin-bottom: 24px;
    border: 1px solid rgba(34,197,94,0.3);
    animation: fadeInDown 0.6s ease;
}

.api-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.api-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.api-hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.api-hero-meta span {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.api-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.api-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.api-hero-wave svg path {
    fill: #ffffff;
}

body.dark-mode .api-hero-wave svg path {
    fill: #0a0f2a;
}

/* ANİMASYONLAR */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* İÇERİK BÖLÜMÜ */
.api-content {
    padding: 70px 0;
    background: #ffffff;
}

body.dark-mode .api-content {
    background: #0a0f2a;
}

.api-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* SOL SIDEBAR */
.api-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

body.dark-mode .sidebar-sticky {
    background: #11173b;
    border-color: #1e2a5e;
}

.sidebar-sticky h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

body.dark-mode .sidebar-sticky h3 {
    color: #60a5fa;
    border-bottom-color: #1e2a5e;
}

.sidebar-sticky ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-sticky li {
    margin-bottom: 12px;
}

.sidebar-sticky a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

body.dark-mode .sidebar-sticky a {
    color: #cbd5e1;
}

.sidebar-sticky a:hover {
    color: #22c55e;
    transform: translateX(5px);
}

.sidebar-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748b;
}

body.dark-mode .sidebar-note {
    border-top-color: #1e2a5e;
}

.sidebar-note span {
    font-size: 1.2rem;
}

/* SAĞ ANA İÇERİK */
.api-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.api-section {
    scroll-margin-top: 100px;
}

.api-section h2 {
    font-size: 1.6rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ff;
}

body.dark-mode .api-section h2 {
    color: #60a5fa;
    border-bottom-color: #1e2a5e;
}

.api-section p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

body.dark-mode .api-section p {
    color: #cbd5e1;
}

.api-section ul {
    margin: 16px 0 16px 24px;
}

.api-section li {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
}

body.dark-mode .api-section li {
    color: #cbd5e1;
}

.api-section strong {
    color: #1e3a8a;
}

body.dark-mode .api-section strong {
    color: #93c5fd;
}

/* INFO BOX */
.info-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
}

body.dark-mode .info-box {
    background: #0a0f2a;
    border-left-color: #22c55e;
}

.info-box strong {
    color: #1e3a8a;
}

body.dark-mode .info-box strong {
    color: #4ade80;
}

/* HABER ALT NOT */
.api-footer-note {
    background: #fefce8;
    border-left: 4px solid #eab308;
    padding: 20px;
    border-radius: 16px;
    margin: 30px 0 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

body.dark-mode .api-footer-note {
    background: #0a0a2a;
    border-left-color: #eab308;
}

.api-footer-note span {
    font-size: 1.2rem;
}

.api-footer-note p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
}

body.dark-mode .api-footer-note p {
    color: #fbbf24;
}

/* YAZAR BİLGİSİ */
.api-author {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    margin-top: 40px;
}

body.dark-mode .api-author {
    background: #11173b;
}

.author-avatar {
    font-size: 3rem;
}

.author-info h4 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 8px;
}

body.dark-mode .author-info h4 {
    color: #60a5fa;
}

.author-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* PAYLAŞIM BUTONLARI */
.api-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

body.dark-mode .api-share {
    border-top-color: #1e2a5e;
}

.api-share span {
    font-size: 0.9rem;
    color: #64748b;
}

.share-link {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #1e3a8a;
    transition: all 0.3s;
}

body.dark-mode .share-link {
    background: #1e2a5e;
    color: #cbd5e1;
}

.share-link:hover {
    background: #22c55e;
    color: white;
}

/* MOBİL UYUM */
@media (max-width: 968px) {
    .api-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .api-sidebar {
        display: none;
    }
    
    .api-hero-title {
        font-size: 2.2rem;
    }
    
    .api-hero-subtitle {
        font-size: 1rem;
    }
    
    .api-hero-meta {
        gap: 15px;
    }
    
    .api-hero-meta span {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .api-hero {
        min-height: 450px;
    }
    
    .api-hero-title {
        font-size: 1.8rem;
    }
    
    .api-section h2 {
        font-size: 1.4rem;
    }
    
    .api-author {
        flex-direction: column;
        text-align: center;
    }
    
    .api-share {
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-box {
        padding: 15px;
    }

    .api-footer-note {
        flex-direction: column;
        text-align: center;
    }

    .api-section ul {
        margin-left: 16px;
    }
}

@media (max-width: 480px) {
    .api-hero-title {
        font-size: 1.5rem;
    }
    
    .api-badge {
        font-size: 0.7rem;
    }
    
    .api-section h2 {
        font-size: 1.3rem;
    }
}
