/* ============================================================
   HANEDAN PROFESSIONAL BLOG - MOBILE-FIRST ARCHITECTURE
   Profesyonel SEO-Friendly Responsive Tasarım
   ============================================================ */

:root {
    /* Brand Colors */
    --brand-burgundy: #8B1538;
    --brand-burgundy-dark: #6B0F2B;
    --brand-burgundy-light: #A5335A;
    --brand-navy: #0A1220;
    --brand-navy-medium: #1A2332;
    --brand-navy-light: #2D3A4F;
    --brand-accent: #B8925F;
    --brand-accent-light: #D4AF7A;
    --brand-silver: #A8B3C7;
    --brand-silver-light: #e2e8f0;
    --pearl: #F8F9FB;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== ARTICLE MASTER CONTAINER ==================== */
.article-master-wrap {
    background: var(--pearl);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* ==================== MAIN CONTAINER ==================== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: hidden;
}

/* Desktop container */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
        padding: 0 40px;
    }
}

/* ==================== PROGRESS BAR ==================== */
#pBarContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: transparent;
}

#pBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-burgundy), #ff4d4d);
    box-shadow: 0 0 10px rgba(139, 21, 56, 0.4);
    transition: width 0.1s ease;
}

/* ==================== AUTHORITY BAR (MOBILE FIRST) ==================== */
.analysis-authority-bar {
    padding: 16px 0 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Breadcrumb */
.authority-left {
    margin-bottom: 16px;
}

.breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid var(--brand-silver-light);
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.breadcrumb-pill a {
    color: var(--brand-navy);
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.breadcrumb-pill a:hover {
    color: var(--brand-burgundy);
}

.breadcrumb-pill i {
    font-size: 6px;
    color: var(--brand-silver);
}

.breadcrumb-pill .active {
    color: var(--brand-burgundy);
    font-weight: 800;
}

/* Authority Badge */
.authority-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.badge-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-navy);
    color: var(--brand-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.badge-text {
    flex: 1;
    min-width: 0;
}

.badge-text small {
    display: block;
    font-size: 7px;
    font-weight: 800;
    color: var(--brand-burgundy);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-text strong {
    display: block;
    font-size: 11px;
    color: var(--brand-navy);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Info Box */
.authority-right {
    width: 100%;
}

.meta-info-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-silver-light);
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.meta-item i {
    font-size: 16px;
    color: var(--brand-burgundy);
    margin-bottom: 2px;
}

.meta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-content small {
    font-size: 8px;
    font-weight: 700;
    color: var(--brand-silver);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.meta-content strong {
    font-size: 11px;
    color: var(--brand-navy);
    font-weight: 700;
    white-space: nowrap;
}

.meta-divider {
    display: none;
}

/* ==================== ARTICLE HEADER ==================== */
.article-header {
    text-align: center;
    padding: 0 8px;
    margin: 24px 0 32px;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-navy);
    line-height: 1.2;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ==================== MAIN IMAGE ==================== */
.main-image-container {
    position: relative;
    width: 100%;
    margin: 0 -16px 40px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.main-image-container img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
}

.image-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 18, 32, 0.92);
    backdrop-filter: blur(8px);
    color: var(--brand-accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(184, 146, 95, 0.3);
}

/* ==================== RICH CONTENT (MOBILE OPTIMIZED) ==================== */
.rich-content {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 20px;
    margin: -24px 0 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    
    /* Critical typography */
    font-size: 16px;
    line-height: 1.75;
    color: var(--brand-navy-medium);
    
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Drop cap */
.rich-content > p:first-of-type::first-letter {
    float: left;
    font-size: 56px;
    font-weight: 900;
    line-height: 0.8;
    margin: 4px 12px 0 0;
    color: var(--brand-burgundy);
}

/* Typography */
.rich-content p {
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-navy);
    margin: 48px 0 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.rich-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy-medium);
    margin: 36px 0 16px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-navy-light);
    margin: 28px 0 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Links */
.rich-content a {
    color: var(--brand-burgundy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(139, 21, 56, 0.2);
    transition: var(--transition-fast);
    word-wrap: break-word;
}

.rich-content a:hover {
    border-bottom-color: var(--brand-burgundy);
    background: rgba(139, 21, 56, 0.05);
}

/* Lists */
.rich-content ul,
.rich-content ol {
    margin: 20px 0;
    padding-left: 0;
}

.rich-content ul {
    list-style: none;
}

.rich-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--brand-burgundy);
    font-size: 14px;
}

.rich-content ol {
    padding-left: 24px;
}

.rich-content ol li {
    padding-left: 8px;
}

/* Images */
.rich-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

/* Blockquote */
.rich-content blockquote {
    border-left: 4px solid var(--brand-burgundy);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--pearl);
    border-radius: 8px;
    font-style: italic;
    color: var(--brand-navy-light);
}

/* Tables */
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.rich-content table th,
.rich-content table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rich-content table th {
    background: var(--pearl);
    font-weight: 700;
    color: var(--brand-navy);
}

/* ==================== IN-ARTICLE CTA ==================== */
.in-article-cta {
    background: var(--brand-navy);
    margin: 40px -20px 32px;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 146, 95, 0.2);
}

.in-article-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.in-article-cta h3 {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.in-article-cta p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 600px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
}

.btn-cta-premium {
    display: block;
    width: 100%;
    background: var(--brand-accent);
    color: var(--brand-navy);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    text-align: center;
}

.btn-cta-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: 48px 0 40px;
    background: var(--pearl);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-container {
    max-width: 100%;
    padding: 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-burgundy);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.faq-question h4 {
    flex: 1;
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: var(--pearl);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-burgundy);
    transition: var(--transition-smooth);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-item.active .faq-icon {
    background: var(--brand-burgundy);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 16px 20px;
    color: var(--brand-navy-light);
    line-height: 1.7;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==================== RELATED SECTION ==================== */
.related-section {
    padding: 40px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

.related-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-body {
    padding: 20px;
    flex: 1;
}

.related-body h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.read-more {
    color: var(--brand-burgundy);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==================== TECHNICAL TABLE ==================== */
.technical-analysis-box {
    margin: 32px 0;
    background: #fdfdfd;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
}

.tablo-header {
    margin-bottom: 20px;
}

.tablo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--brand-navy);
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tablo-title i {
    color: var(--brand-burgundy);
    font-size: 16px;
}

.tablo-badge {
    background: var(--brand-navy);
    color: var(--brand-accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.hanedan-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    background: white;
}

.hanedan-table th {
    background: #f8fafc;
    color: var(--brand-navy);
    text-align: left;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
}

.hanedan-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
}

.hanedan-table tr:last-child td {
    border-bottom: none;
}

.hanedan-table tr:hover {
    background: rgba(139, 21, 56, 0.02);
}

/* ==================== TABLET (768px+) ==================== */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    
    .analysis-authority-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        margin-bottom: 40px;
    }
    
    .authority-left {
        display: flex;
        align-items: center;
        gap: 24px;
        margin-bottom: 0;
    }
    
    .authority-badge {
        margin-top: 0;
    }
    
    .authority-right {
        width: auto;
    }
    
    .meta-info-box {
        display: flex;
        gap: 16px;
        padding: 12px 24px;
    }
    
    .meta-item {
        flex-direction: row;
        gap: 10px;
    }
    
    .meta-content {
        align-items: flex-start;
    }
    
    .meta-divider {
        display: block;
        width: 1px;
        height: 36px;
        background: #eee;
    }
    
    .article-header h1 {
        font-size: 36px;
    }
    
    .main-image-container {
        margin: 0 0 60px;
        border-radius: 20px;
    }
    
    .main-image-container img {
        max-height: 450px;
    }
    
    .rich-content {
        padding: 60px 50px;
        border-radius: 40px;
        font-size: 18px;
        line-height: 1.8;
    }
    
    .rich-content h2 {
        font-size: 32px;
        margin: 60px 0 28px;
    }
    
    .rich-content h3 {
        font-size: 24px;
    }
    
    .in-article-cta {
        margin: 60px -50px 40px;
        padding: 60px 50px;
        border-radius: 32px;
    }
    
    .in-article-cta h3 {
        font-size: 32px;
    }
    
    .in-article-cta p {
        font-size: 17px;
    }
    
    .btn-cta-premium {
        width: auto;
        display: inline-block;
        padding: 18px 48px;
        font-size: 15px;
    }
    
    .faq-section {
        padding: 80px 0 60px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .faq-container {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .faq-question {
        padding: 24px 28px;
    }
    
    .faq-question h4 {
        font-size: 17px;
    }
    
    .faq-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .faq-answer-content {
        padding: 0 28px 28px;
        font-size: 15px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ==================== DESKTOP (992px+) ==================== */
@media (min-width: 992px) {
    .breadcrumb-pill {
        font-size: 11px;
        padding: 10px 24px;
    }
    
    .badge-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .badge-text strong {
        font-size: 13px;
    }
    
    .meta-info-box {
        padding: 14px 32px;
    }
    
    .article-header {
        margin: 60px auto 80px;
    }
    
    .article-header h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }
    
    .main-image-container img {
        max-height: 550px;
    }
    
    .rich-content {
        padding: 80px 80px;
        border-radius: 50px;
        font-size: 19px;
        line-height: 2;
    }
    
    .rich-content > p:first-of-type::first-letter {
        font-size: 72px;
    }
    
    .rich-content h2 {
        font-size: 38px;
        margin: 80px 0 32px;
    }
    
    .rich-content h3 {
        font-size: 28px;
    }
    
    .in-article-cta {
        margin: 80px -80px 60px;
        padding: 80px 60px;
        border-radius: 40px;
    }
    
    .in-article-cta h3 {
        font-size: 38px;
    }
    
    .faq-section {
        padding: 100px 0 80px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
    
    .related-img {
        height: 220px;
    }
}

/* ==================== LARGE DESKTOP (1200px+) ==================== */
@media (min-width: 1200px) {
    .rich-content {
        padding: 100px 100px;
    }
    
    .rich-content h2::before {
        content: '';
        position: absolute;
        left: -80px;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 4px;
        background: var(--brand-burgundy);
        border-radius: 50px;
    }
    
    .rich-content h2 {
        position: relative;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    #pBarContainer,
    .faq-icon,
    .image-badge,
    .btn-cta-premium {
        display: none !important;
    }
    
    .rich-content,
    .main-image-container {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .faq-item {
        page-break-inside: avoid;
    }
}