/**
 * M3 Hesaplama Sayfa Stilleri
 * Modern, iOS tarzı, minimalist tasarım
 */

/* Hero Alanı - Diğer sayfalar ile aynı */
.m3-hero {
    background: linear-gradient(rgba(3, 67, 139, 0.8), rgba(3, 67, 139, 0.8)),
        url('../img/banner.webp') no-repeat center center / cover;
    padding: 140px 0 60px;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 0;
}

.m3-hero h1 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.m3-hero .breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
    background-color: transparent;
}

.m3-hero .breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.m3-hero .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.m3-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
}

.m3-hero .breadcrumb-item a:hover {
    color: #FFC107;
}

.m3-hero .breadcrumb-item.active {
    color: #FFC107;
    font-weight: 600;
}

/* M3 Hesaplama Aracı Wrapper */
.m3-calculator-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.calculator-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 1200px;
    overflow: visible;
}

/* Iframe Stilleri */
.m3-calculator-frame {
    width: 100%;
    min-height: 1200px;
    height: 2000px;
    /* Fallback yükseklik */
    border: none;
    display: block;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: visible;
}

/* İçerik Bölümü */
.m3-content-section {
    padding: 40px 0;
    background: #ffffff;
    position: relative;
}

.m3-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 31, 63, 0.1), transparent);
}

.m3-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.m3-content-section .content-wrapper {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

.m3-content-section .page-article {
    padding: 40px;
}

/* Featured Image */
.m3-content-section .post-featured-image {
    margin: 0 0 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.m3-content-section .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.m3-content-section .post-featured-image:hover img {
    transform: scale(1.02);
}

/* İçerik Stilleri */
.m3-content-section .page-body {
    line-height: 1.8;
    color: #2c3e50;
}

.m3-content-section .page-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #001f3f;
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #003d7a;
    position: relative;
}

.m3-content-section .page-body h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #001f3f, #0077ff);
    border-radius: 2px;
}

.m3-content-section .page-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003d7a;
    margin: 30px 0 15px;
}

.m3-content-section .page-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.m3-content-section .page-body ul,
.m3-content-section .page-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.m3-content-section .page-body li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.m3-content-section .page-body a {
    color: #0077ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 119, 255, 0.3);
    transition: all 0.3s ease;
}

.m3-content-section .page-body a:hover {
    color: #003d7a;
    border-bottom-color: #003d7a;
}

.m3-content-section .page-body blockquote {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.03) 0%, rgba(0, 119, 255, 0.05) 100%);
    border-left: 4px solid #0077ff;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #34495e;
}

.m3-content-section .page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.m3-content-section .page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.m3-content-section .page-body table th {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.m3-content-section .page-body table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.m3-content-section .page-body table tr:last-child td {
    border-bottom: none;
}

.m3-content-section .page-body table tr:hover {
    background: rgba(0, 119, 255, 0.02);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .m3-hero {
        padding: 120px 0 40px;
    }

    .m3-hero h1 {
        font-size: 28px;
    }

    .m3-hero .breadcrumb {
        font-size: 14px;
    }

    .calculator-container {
        min-height: 1400px;
        padding: 15px;
        overflow: visible;
    }

    .m3-calculator-frame {
        min-height: 1400px;
        height: 2200px;
        /* Mobil fallback */
        overflow: visible;
    }

    .m3-content-section {
        padding: 30px 0;
    }

    .m3-content-section .page-article {
        padding: 20px;
    }

    .m3-content-section .page-body {
        font-size: 1rem;
    }

    .m3-content-section .page-body h2 {
        font-size: 1.5rem;
        margin: 30px 0 15px;
    }

    .m3-content-section .page-body h3 {
        font-size: 1.3rem;
    }

    .m3-content-section .page-body table {
        font-size: 0.9rem;
    }

    .m3-content-section .page-body table th,
    .m3-content-section .page-body table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .m3-hero {
        padding: 100px 0 30px;
    }

    .m3-hero h1 {
        font-size: 24px;
    }

    .calculator-container {
        min-height: 1600px;
        padding: 10px;
        overflow: visible;
    }

    .m3-calculator-frame {
        min-height: 1600px;
        height: 2400px;
        /* Küçük ekran fallback */
        overflow: visible;
    }

    .m3-content-section .page-body {
        font-size: 0.95rem;
    }

    .m3-content-section .page-body h2 {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {

    .m3-hero,
    .m3-calculator-wrapper {
        display: none;
    }

    .m3-content-section {
        padding: 20px 0;
    }

    .m3-content-section .page-body a {
        color: #000;
        border-bottom: none;
    }
}