/**
 * Main Site Styles
 * 
 * Modern, responsive design - casinosendeonline.com inspired
 * 
 * @package SEO_Blog
 */

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;      /* Butonlar, linkler, vurgular */
    --secondary-color: #764ba2;    /* Gradient arka planlar */
    --accent-color: #f59e0b;
    --text-color: #1f2937;         /* Ana metin rengi */
    --text-light: #6b7280;         /* Açıklama metinleri */
    --border-color: #e5e7eb;       /* Çizgiler, kenarlıklar */
    --bg-color: #ffffff;           /* Arka plan */
    --bg-secondary: #f9fafb;       /* İkincil arka plan */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-secondary);
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    width: 200px;
}

.header-search button {
    padding: 8px 15px;
    border: none;
    background: #fff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header-search button:hover {
    background: #d97706;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.site-main {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========================================
   POST GRID
   ======================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-card-excerpt .read-more {
    display: inline-block;
    margin-left: 5px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-excerpt .read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   SINGLE POST
   ======================================== */
.post-single {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.post-header {
    margin-bottom: 30px;
}

.post-meta-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
}

.post-date {
    color: var(--text-light);
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.author-avatar {
    /* width: 40px; */
    /* height: 40px; */
    border-radius: 50%;
    object-fit: cover;
}

.post-views, .post-reading-time {
    color: var(--text-light);
    font-size: 14px;
}

.post-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.post-content h3 {
    font-size: 24px;
    margin: 25px 0 12px;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content img {
    margin: 30px 0;
    border-radius: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    background: var(--bg-secondary);
    font-style: italic;
}

.ad-content-middle {
    margin: 40px 0;
    text-align: center;
}

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.post-tags {
    margin-bottom: 20px;
}

.post-tags .tag {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 5px;
    margin: 5px 5px 5px 0;
    font-size: 14px;
}

.post-share {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* ========================================
   AUTHOR BOX
   ======================================== */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img, .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-bio {
    color: var(--text-light);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    font-size: 14px;
    color: var(--primary-color);
}

/* ========================================
   RELATED POSTS
   ======================================== */
.related-posts {
    margin-top: 50px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.post-list {
    list-style: none;
}

.post-item {
    margin-bottom: 20px;
}

.post-item:last-child {
    margin-bottom: 0;
}

.post-item .post-link {
    display: flex;
    gap: 15px;
    color: inherit;
}

.post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.post-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 12px;
    color: var(--text-light);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list .count {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   ADS
   ======================================== */
.ad-container {
    margin: 20px 0;
    text-align: center;
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 5px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 10px;
    list-style: none;
}

.pagination-link {
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.pagination-link:hover, .pagination-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    padding: 10px 15px;
}

/* ========================================
   ARCHIVE PAGES
   ======================================== */
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.archive-description {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 10px;
}

.archive-count {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   AUTHOR PROFILE
   ======================================== */
.author-profile {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.author-profile-avatar img, .avatar-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.avatar-placeholder-large {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.author-profile-name {
    font-size: 28px;
    margin-bottom: 15px;
}

.author-profile-bio {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-profile-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.author-profile-social {
    display: flex;
    gap: 15px;
}

.author-posts {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========================================
   ERROR PAGE
   ======================================== */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-message {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-actions {
    margin-bottom: 40px;
}

.error-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.error-suggestions {
    margin-top: 40px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-color);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-about h3, .footer-links h4, .footer-categories h4, .footer-social h4, .footer-pages h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links ul, .footer-categories ul, .footer-pages ul {
    list-style: none;
}

.footer-links li, .footer-categories li, .footer-pages li {
    margin-bottom: 10px;
}

.footer-links a, .footer-categories a, .footer-pages a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-categories a:hover, .footer-pages a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .header-search input {
        width: 150px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-single {
        padding: 25px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .author-box {
        flex-direction: column;
    }
    
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .site-main {
        width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .logo h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .mobile-menu-toggle {
        order: 2;
        flex: 0 0 auto;
    }
    
    .header-search {
        order: 3;
        flex: 0 0 100%;
        margin: 12px 0 0 0;
    }
    
    .header-search input {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .header-search button {
        padding: 8px 12px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card {
        margin-bottom: 20px;
    }
    
    .post-card img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
    
    .post-content img {
        max-width: 100%;
        height: auto;
    }
    
    .post-single img {
        max-width: 100%;
        height: auto;
    }
    
    .sidebar {
        margin-top: 30px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .sidebar * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sidebar-widget,
    .sidebar .widget,
    .sidebar > div,
    .popular-posts,
    .categories,
    .recent-posts {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .sidebar .widget {
        margin-bottom: 20px;
        padding: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .sidebar .widget h3 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-color);
        color: var(--text-color);
    }
    
    .sidebar .widget ul {
        list-style: none;
        padding: 0;
    }
    
    .sidebar .widget ul li {
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 14px;
    }
    
    .sidebar .widget ul li:last-child {
        border-bottom: none;
    }
    
    .sidebar .widget-post {
        display: flex;
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar .widget-post:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .sidebar .widget-post img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .sidebar .widget-post-content {
        flex: 1;
        min-width: 0;
    }
    
    .sidebar .widget-post-title {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 6px;
        font-weight: 600;
        color: var(--text-color);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .sidebar .widget-post-meta {
        font-size: 12px;
        color: var(--text-light);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav ul li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul li a {
        display: block;
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-search input {
        width: 120px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .error-code {
        font-size: 80px;
    }
}
