/**
 * Ana Site CSS
 * Yaşar Biçer Web Sitesi
 */

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --border-color: #ddd;
    --success-color: #27ae60;
    --white: #ffffff;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Header ==================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo .site-logo {
    max-height: 60px;
    height: auto;
    max-width: 200px;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==================== Hero Section ==================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-placeholder {
    background: rgba(255,255,255,0.1);
    border: 3px dashed rgba(255,255,255,0.3);
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* ==================== Featured Book ==================== */
.featured-book {
    padding: 80px 0;
    background: var(--white);
}

.book-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.book-cover-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    height: 500px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.book-cover-placeholder p {
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
    padding: 0 30px;
}

.book-label {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.book-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.book-year {
    color: #777;
    margin-bottom: 20px;
}

.book-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ==================== Posts Grid ==================== */
.recent-posts {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
}

.view-all {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 16px;
    transition: color 0.3s;
}

.view-all:hover {
    color: #c0392b;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-category {
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 15px;
    color: var(--primary-color);
}

.post-date, .post-views {
    color: #777;
}

.post-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.post-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #c0392b;
}

/* ==================== CTA Section ==================== */
.cta {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ==================== Footer ==================== */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* ==================== Page Hero ==================== */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ==================== About Page ==================== */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-bio {
    font-size: 18px;
    line-height: 1.8;
}

.about-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.about-section {
    text-align: center;
    padding: 30px;
}

.section-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent-color);
}

.about-section h3 {
    margin-bottom: 15px;
}

.about-cta {
    background: var(--light-gray);
    padding: 60px;
    border-radius: 10px;
    text-align: center;
}

.about-cta h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* ==================== Posts Page ==================== */
.posts-section {
    padding: 60px 0;
}

.posts-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.posts-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.category-list {
    list-style: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--light-gray);
}

.category-list .count {
    color: #999;
}

.no-posts {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 10px;
}

.no-posts i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* ==================== Post Detail ==================== */
.post-detail {
    padding: 60px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.post-header .post-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.post-header .post-excerpt {
    font-size: 20px;
    color: #666;
}

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.post-body {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.post-footer {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.post-author {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.author-avatar {
    font-size: 60px;
    color: var(--accent-color);
}

.author-info h4 {
    margin-bottom: 10px;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h2 {
    margin-bottom: 30px;
}

/* ==================== Book Page ==================== */
.book-detail {
    padding: 80px 0;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.book-cover-large-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    height: 600px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 70px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.book-cover-large-placeholder p {
    font-size: 26px;
    text-align: center;
    margin-top: 20px;
    padding: 0 40px;
}

.book-cover-large-placeholder span {
    font-size: 18px;
    opacity: 0.8;
}

.book-info-detail h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.book-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.book-meta-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.book-meta-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-top: 5px;
}

.book-additional {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.book-section {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
}

.book-cta {
    background: var(--light-gray);
    padding: 60px;
    border-radius: 10px;
    text-align: center;
}

/* ==================== Contact Page ==================== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form-wrapper,
.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-form-wrapper h2,
.contact-info h2 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
}

.contact-details h4 {
    margin-bottom: 5px;
}

.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    margin-bottom: 15px;
}

.contact-note {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.contact-note i {
    font-size: 20px;
    color: var(--accent-color);
}

/* ==================== Alerts ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== Responsive ==================== */
@media (max-width: 968px) {
    .hero-content,
    .book-card,
    .about-grid,
    .book-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-layout {
        grid-template-columns: 1fr;
    }
    
    .posts-sidebar {
        order: -1;
    }
    
    .footer-content,
    .about-sections,
    .book-additional {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
}

/* ==================== Video Stilleri ==================== */
.post-featured-video {
    margin-bottom: 30px;
    text-align: center;
}

.post-featured-video video {
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Yazı kartlarında video önizleme */
.post-video-preview {
    position: relative;
    overflow: hidden;
}

.post-video-preview video {
    pointer-events: none;
}

.post-video-preview .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.post-video-preview .video-overlay i {
    font-size: 48px;
    color: white;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.post-card:hover .post-video-preview .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.post-card:hover .post-video-preview .video-overlay i {
    transform: scale(1.2);
}

