/**
 * Hesaplama Merkezi Ana Stil Dosyası
 * SEO ve performans için optimize edilmiştir
 * Version: 1.2.0
 */

/* ---------- RESET VE TEMEL STILLER ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --error-color: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

main {
    min-height: 70vh;
}

section {
    padding: 3rem 0;
}

/* ---------- HEADER ---------- */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo a {
    color: var(--dark-color);
}

.main-menu {
    display: flex;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.main-menu li {
    margin-left: 1.5rem;
}

.main-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.main-menu a.active, .main-menu a:hover {
    color: var(--primary-color);
}

.main-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* ---------- HERO SECTION ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* ---------- TOOLS GRID ---------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    text-align: center;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tool-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- CATEGORIES ---------- */
.categories {
    background-color: var(--light-color);
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.category h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category h3 i {
    margin-right: 0.5rem;
}

.category ul {
    list-style: none;
    padding-left: 0;
}

.category li {
    margin-bottom: 0.5rem;
}

.category a {
    display: block;
    padding: 0.5rem;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.category a:hover {
    background-color: var(--light-color);
    padding-left: 0.75rem;
    color: var(--primary-color);
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section p {
    margin-bottom: 2rem;
}

/* ---------- BLOG SECTION ---------- */
.blog-section {
    background-color: var(--light-color);
    text-align: center;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-preview-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-preview-image {
    height: 200px;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.05);
}

.blog-preview-content {
    padding: 1.5rem;
}

.blog-preview-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-preview-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.blog-read-more {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.blog-read-more i {
    margin-left: 0.25rem;
    transition: var(--transition);
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

.blog-section-footer {
    margin-top: 2rem;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-media a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* ---------- CALCULATOR FORM ---------- */
.calculator-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.calculator-content {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.calculator-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.calculator-form form > div {
    margin-bottom: 1.25rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.calculator-form input:focus,
.calculator-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.calculator-form .hesapla-btn {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.calculator-form .hesapla-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sonuc {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    display: none;
}

.sonuc.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- CALCULATOR INFO ---------- */
.calculator-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.calculator-info h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.calculator-info h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.calculator-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.calculator-info ul, .calculator-info ol {
    margin-bottom: 1.5rem;
}

.calculator-info li {
    margin-bottom: 0.5rem;
}

/* ---------- RELATED CALCULATORS ---------- */
.related-calculators {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.related-calculators h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.related-links a {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    flex: 1 1 250px;
    max-width: 250px;
}

.related-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.related-links i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-section h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ---------- COMPARISON TABLE ---------- */
.comparison-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.comparison-table th, .comparison-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.comparison-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu li {
        margin: 0.5rem 1.5rem;
    }
    
    #mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .calculator-info, .faq-section, .related-calculators {
        padding: 1.5rem;
    }
    
    .related-links a {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ---------- LAZY LOAD IMAGES ---------- */
img.lazy {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* ---------- UTILITY CLASSES ---------- */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none;
} 