/* ===================================
   Blog Sayfasi Stilleri
   =================================== */

/* --- BLOG HEADER --- */
.blog-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
}

.blog-header h1 {
    font-size: 2.4rem;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: block;
}

.blog-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0;
}

/* --- BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

/* --- BLOG KART --- */
.blog-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.card-image {
    width: 100%;
    aspect-ratio: 1200 / 630;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.card-image::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

.card-image-icon {
    font-size: 3rem;
    opacity: 0.9;
    z-index: 1;
}

.card-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.card-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* --- BLOG DETAY --- */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.blog-back-link:hover {
    background: rgba(220, 38, 38, 0.7);
    color: white;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-hero {
    margin: 0 -40px 30px -40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .article-hero {
        margin: 0 -20px 24px -20px;
    }
}

.article-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.article-header h1 {
    font-size: 2rem;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.3;
    display: block;
}

.article-meta {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-dot {
    color: #cbd5e1;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.article-tag {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.15));
    color: #dc2626;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* --- MAKALE ICERIGI --- */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-content h3[style*="margin-top: 0"],
.article-content h3[style*="margin-top:0"] {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.article-content h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 6px;
}

.article-content .step-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px 0;
}

.article-content .step-number {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #334155;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    margin-top: 2px;
}

.article-content .step-title {
    margin: 0;
    flex: 1;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.article-content table thead tr {
    background: #1e293b;
    color: white;
}

.article-content table thead th {
    border-color: #334155;
}

.article-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #dc2626;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.article-content a {
    color: #dc2626;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #991b1b;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #dc2626;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* --- OZEL BLOG BILEŞENLERI / SATRANÇ REHBERI --- */
.article-content .chess-section {
    margin: 40px 0;
    padding: 0;
}

.article-content .chess-board-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 28px 0;
}

.article-content .board-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-style: italic;
}

.article-content .board-label-spaced {
    margin-top: 8px;
}

.article-content .board-coords-layout {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.article-content .chess-board {
    display: grid;
    grid-template-columns: repeat(8, 52px);
    grid-template-rows: repeat(8, 52px);
    border: 3px solid #334155;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    position: relative;
}

.article-content .chess-board.small {
    grid-template-columns: repeat(8, 40px);
    grid-template-rows: repeat(8, 40px);
}

.article-content .sq {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    position: relative;
    cursor: default;
    transition: background 0.2s;
    margin-bottom: 0;
}

.article-content .chess-board.small .sq {
    width: 40px;
    height: 40px;
    font-size: 22px;
}

.article-content .sq.light {
    background: #f0d9b5;
}

.article-content .sq.dark {
    background: #b58863;
}

.article-content .sq.highlight {
    background: #f6f669 !important;
    opacity: 0.85;
}

.article-content .sq.danger {
    background: #ff6b6b !important;
    opacity: 0.75;
}

.article-content .sq.target {
    background: #7fc97f !important;
    opacity: 0.85;
}

.article-content .coord-col,
.article-content .coord-row {
    display: flex;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 1px;
}

.article-content .coord-col {
    gap: 0;
}

.article-content .coord-col span {
    width: 52px;
    text-align: center;
}

.article-content .coord-row {
    flex-direction: column;
    margin-right: 4px;
}

.article-content .coord-row span {
    height: 52px;
    line-height: 52px;
}

.article-content .coord-row-tight {
    margin-top: 0;
}

.article-content .coord-col-offset {
    margin-top: 4px;
}

.article-content .chess-board.small ~ .coord-col span,
.article-content .coord-col.small span {
    width: 40px;
}

@keyframes blogChessMoveRight {
    0% { transform: translateX(0); opacity: 1; }
    40% { transform: translateX(104px); opacity: 1; }
    100% { transform: translateX(104px); opacity: 1; }
}

@keyframes blogChessMoveUp {
    0% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(-104px); opacity: 1; }
    100% { transform: translateY(-104px); opacity: 1; }
}

@keyframes blogChessMoveKnight {
    0% { transform: translate(0, 0); opacity: 1; }
    40% { transform: translate(104px, -52px); opacity: 1; }
    100% { transform: translate(104px, -52px); opacity: 1; }
}

@keyframes blogChessMoveDiag {
    0% { transform: translate(0, 0); opacity: 1; }
    40% { transform: translate(156px, -156px); opacity: 1; }
    100% { transform: translate(156px, -156px); opacity: 1; }
}

@keyframes blogChessPulsePiece {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

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

@keyframes blogChessRokKing {
    0% { transform: translateX(0); }
    50% { transform: translateX(104px); }
    100% { transform: translateX(104px); }
}

@keyframes blogChessRokRook {
    0% { transform: translateX(0); }
    50% { transform: translateX(-156px); }
    100% { transform: translateX(-156px); }
}

@keyframes blogChessEnPassantCapture {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(-52px, -52px); opacity: 1; }
    75% { transform: translate(-52px, -52px); opacity: 1; }
    100% { transform: translate(-52px, -52px); opacity: 0.3; }
}

@keyframes blogChessPromotionGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
    50% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0.5); }
}

.article-content .animate-move {
    animation: blogChessMoveRight 2s ease-in-out infinite;
}

.article-content .animate-up {
    animation: blogChessMoveUp 2s ease-in-out infinite;
}

.article-content .animate-knight {
    animation: blogChessMoveKnight 2.5s ease-in-out infinite;
}

.article-content .animate-diag {
    animation: blogChessMoveDiag 2.5s ease-in-out infinite;
}

.article-content .animate-pulse {
    animation: blogChessPulsePiece 1.5s ease-in-out infinite;
}

.article-content .animate-rok-king {
    animation: blogChessRokKing 3s ease-in-out infinite;
}

.article-content .animate-rok-rook {
    animation: blogChessRokRook 3s ease-in-out infinite;
}

.article-content .animate-en-passant {
    animation: blogChessEnPassantCapture 3s ease-in-out infinite;
}

.article-content .animate-promotion {
    animation: blogChessPromotionGlow 2s ease-in-out infinite;
    border-radius: 4px;
}

.article-content .fade-in {
    animation: blogChessFadeInUp 0.6s ease both;
}

.article-content .info-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
    border-left: 5px solid #f59e0b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-content .info-card h4 {
    color: #fbbf24;
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.article-content .info-card p,
.article-content .info-card li {
    color: #cbd5e1;
    margin: 6px 0;
    font-size: 0.95rem;
}

.article-content .info-card ul {
    padding-left: 18px;
}

.article-content .rule-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 16px 0;
    border-top: 4px solid #3b82f6;
}

.article-content .rule-card h4 {
    color: #1e40af;
    margin: 0 0 8px;
}

.article-content .rule-card p,
.article-content .rule-card li {
    color: #475569;
    font-size: 0.95rem;
    margin: 5px 0;
}

.article-content .warning-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    border-left: 5px solid #f59e0b;
}

.article-content .warning-card p {
    color: #92400e;
    margin: 0;
    font-size: 0.95rem;
}

.article-content .success-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    border-left: 5px solid #22c55e;
}

.article-content .success-card p {
    color: #166534;
    margin: 0;
    font-size: 0.95rem;
}

.article-content .piece-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.article-content .piece-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-content .piece-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-content .piece-card .piece-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.article-content .piece-card .piece-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.article-content .piece-card .piece-value {
    color: #f59e0b;
    font-size: 1.3rem;
    font-weight: 900;
    margin-top: 4px;
}

.article-content .piece-card .piece-desc {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 4px;
}

.article-content .steps {
    counter-reset: step-counter;
    margin: 24px 0;
}

.article-content .step-item {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    align-items: flex-start;
}

.article-content .step-num {
    counter-increment: step-counter;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.article-content .step-body {
    flex: 1;
}

.article-content .step-body strong {
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.article-content .step-body p {
    color: #475569;
    font-size: 0.93rem;
    margin: 0;
}

.article-content .tactic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.article-content .tactic-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 12px;
    padding: 20px;
    color: #e2e8f0;
    border-top: 4px solid;
}

.article-content .tactic-card:nth-child(1) { border-color: #f59e0b; }
.article-content .tactic-card:nth-child(2) { border-color: #3b82f6; }
.article-content .tactic-card:nth-child(3) { border-color: #22c55e; }
.article-content .tactic-card:nth-child(4) { border-color: #a855f7; }
.article-content .tactic-card:nth-child(5) { border-color: #ef4444; }

.article-content .tactic-card .tactic-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.article-content .tactic-card h4 {
    color: #fbbf24;
    margin: 0 0 8px;
    font-size: 1rem;
}

.article-content .tactic-card p {
    color: #94a3b8;
    font-size: 0.87rem;
    margin: 0;
}

.article-content .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.article-content .section-header .icon {
    font-size: 28px;
}

.article-content .section-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.4rem;
    padding-bottom: 0;
    border-bottom: 0;
}

/* --- SKELETON KART --- */
.skeleton-card {
    cursor: default;
}

.skeleton-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- MOBIL --- */
@media screen and (max-width: 768px) {
    .blog-header {
        padding: 25px 20px;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 0.95rem;
    }

    .blog-article {
        padding: 25px;
    }
}

@media screen and (max-width: 600px) {
    .article-content .chess-board {
        grid-template-columns: repeat(8, 38px);
        grid-template-rows: repeat(8, 38px);
    }

    .article-content .sq {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .article-content .coord-col span {
        width: 38px;
    }

    .article-content .coord-row span {
        height: 38px;
        line-height: 38px;
    }

    .article-content .piece-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-content .tactic-grid {
        grid-template-columns: 1fr;
    }
}
