/* KidsLife Blog - Modern CSS */
/* Tema Renkleri: #FF7C5E, #F2C381, #FE976A */

:root {
    --primary-color: #FF7C5E;
    --secondary-color: #F2C381;
    --accent-color: #FE976A;
    --gradient-start: #FF7C5E;
    --gradient-end: #F2C381;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #FFF9F5;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(255, 124, 94, 0.1);
    --shadow-hover: 0 8px 30px rgba(255, 124, 94, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

.app-buttons .btn-app {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-buttons .btn-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 124, 94, 0.05) 0%, rgba(242, 195, 129, 0.05) 100%);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Başlıkları */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 60px 0 30px;
    color: var(--text-dark);
}

/* Yazı Grid */
.yazi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Yazı Kartı */
.yazi-kart {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.yazi-kart:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.yazi-kart a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.yazi-kart img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.yazi-icerik {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kategori-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.yazi-kart h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.yazi-kart p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.yazi-kart time {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Makale Detay */
.makale-detay {
    max-width: 800px;
    margin: 60px auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.makale-detay .kapak-resmi {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.makale-detay h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-dark);
}

.makale-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F0F0F0;
    flex-wrap: wrap;
}

.makale-meta span {
    color: var(--text-light);
    font-size: 15px;
}

.makale-icerik {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.makale-icerik p {
    margin-bottom: 20px;
}

.makale-icerik h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.makale-icerik h3 {
    font-size: 26px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.makale-icerik ul, .makale-icerik ol {
    margin: 20px 0 20px 30px;
}

.makale-icerik li {
    margin-bottom: 10px;
}

.makale-icerik img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.makale-icerik blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--border-radius);
    margin: 60px 0;
    box-shadow: var(--shadow);
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.app-download {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-download img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

.app-download img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
    padding: 50px 0 30px;
    margin-top: 80px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    margin: 0;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.95;
    transition: var(--transition);
    font-weight: 500;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--white);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 30px 0;
    font-size: 14px;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        padding: 20px;
        gap: 15px;
    }
    
        .menu.active {
        display: flex;
        top: 60px;
        background: #f3ad86;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .yazi-grid {
        grid-template-columns: 1fr;
    }
    
    .makale-detay {
        padding: 30px 20px;
    }
    
    .makale-detay h1 {
        font-size: 28px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    footer ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 124, 94, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
}

.message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.message.info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}
