/**
 * Burç Yorumları Page CSS
 * Template: page-templates/burc-yorumlari.php
 * Layout: Grid (5 sütun - 12 burç)
 *
 * @package News_Theme
 * @version 1.0.0
 */

/* ===== SCROLL FIX - MASAÜSTÜ ===== */
html {
    height: 100%;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body {
    min-height: 100vh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
}

body .site-main {
    flex: 1 1 auto !important;
    display: block !important;
    min-height: 70vh !important;
    width: 100% !important;
}

body .site-footer {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.by-container {
    min-height: 600px;
    padding-bottom: 80px;
}

/* ===== Layout Overrides ===== */
body .site-breadcrumb,
body .breadcrumb,
body .page-header,
body .entry-header,
body .entry-title,
body h1.entry-title,
body .page-title,
body header.entry-header,
body .ast-archive-description,
body .archive-header,
body .page-banner,
body .hero-section {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

body .site-content,
body .ast-container,
body #content,
body .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body .sidebar,
body aside,
body #secondary,
body .widget-area {
    display: none !important;
}

body .content-area,
body main,
body #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .site-main {
    flex: 1 1 auto !important;
}

body .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== Page Header ===== */
.by-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    box-sizing: border-box;
}

.by-page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.by-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.by-title-icon {
    font-size: 20px;
}

/* ===== Container ===== */
.by-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* ===== Grid Container - 3 sütun ===== */
.by-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== Burç Card ===== */
.by-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 20px;
    text-align: center;
    position: relative;
}

.by-card:hover {
    box-shadow: 0 8px 24px rgba(102,126,234,0.3);
    transform: translateY(-5px);
}

.by-card-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.by-card-icon {
    font-size: 60px;
    margin: 10px 0 15px;
    color: #667eea;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.by-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.by-card-date {
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #7f8c8d;
}

.by-card-summary {
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    min-height: 60px;
}

.by-card-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.by-card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* ===== Loading State ===== */
.by-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* ===== Update Info ===== */
.by-update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
}

.update-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Highlight Animation (Anchor Link için) ===== */
@keyframes highlight {
    0% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(102,126,234,0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: scale(1);
    }
}

/* ===== Modal ===== */
.by-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.by-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
}

.by-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.by-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.1);
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.by-modal-close:hover {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg);
}

.by-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.by-modal-number {
    font-size: 60px;
    display: block;
    margin-bottom: 10px;
}

.by-modal-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.by-modal-date {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.by-modal-body {
    padding: 30px;
}

.by-modal-section {
    margin-bottom: 25px;
}

.by-modal-section:last-child {
    margin-bottom: 0;
}

.by-modal-section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.by-modal-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* ===== Dark Mode ===== */
body.dark-mode .by-page-header {
    background: linear-gradient(135deg, #4a5887 0%, #5a3a74 100%);
}

body.dark-mode .by-card {
    background: var(--dark-bg-secondary, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .by-card:hover {
    box-shadow: 0 8px 24px rgba(102,126,234,0.5);
}

body.dark-mode .by-card-title {
    color: var(--dark-text-primary, #e0e0e0);
}

body.dark-mode .by-card-date {
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .by-card-summary {
    color: var(--dark-text-secondary, #aaa);
}

body.dark-mode .by-update-info {
    background: var(--dark-bg-primary, #0d0d0d);
    border-color: var(--dark-border, #2a2a2a);
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .update-dot {
    background: #4ade80;
}

body.dark-mode .by-loading {
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .by-modal-content {
    background: var(--dark-bg-secondary, #1a1a1a);
}

body.dark-mode .by-modal-close {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

body.dark-mode .by-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

body.dark-mode .by-modal-section h3 {
    color: #667eea;
}

body.dark-mode .by-modal-section p {
    color: var(--dark-text-secondary, #aaa);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .by-page-header-inner,
    .by-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .by-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .by-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .by-page-header {
        padding: 12px 0;
        margin: 0 0 15px 0;
    }
    
    .by-title {
        font-size: 16px;
    }
    
    .by-title-icon {
        font-size: 18px;
    }
    
    .by-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .by-card {
        padding: 15px;
    }
    
    .by-card-icon {
        font-size: 50px;
    }
    
    .by-card-title {
        font-size: 16px;
    }
    
    .by-card-summary {
        font-size: 12px;
        min-height: 50px;
    }
    
    .by-update-info {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .by-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .by-modal-header {
        padding: 25px 20px;
    }
    
    .by-modal-number {
        font-size: 50px;
    }
    
    .by-modal-title {
        font-size: 24px;
    }
    
    .by-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .by-page-header {
        padding: 10px 0;
    }
    
    .by-page-header-inner,
    .by-container {
        padding: 0 12px !important;
    }
    
    .by-title {
        font-size: 14px;
    }
    
    .by-title-icon {
        font-size: 16px;
    }
    
    .by-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .by-card {
        padding: 12px;
    }
    
    .by-card-number {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }
    
    .by-card-icon {
        font-size: 40px;
        margin: 5px 0 10px;
    }
    
    .by-card-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .by-card-date {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .by-card-summary {
        font-size: 11px;
        min-height: 40px;
        margin-bottom: 10px;
    }
    
    .by-card-button {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .by-modal-header {
        padding: 20px 15px;
    }
    
    .by-modal-number {
        font-size: 40px;
    }
    
    .by-modal-title {
        font-size: 20px;
    }
    
    .by-modal-date {
        font-size: 12px;
    }
    
    .by-modal-body {
        padding: 15px;
    }
    
    .by-modal-section {
        margin-bottom: 20px;
    }
    
    .by-modal-section h3 {
        font-size: 14px;
    }
    
    .by-modal-section p {
        font-size: 13px;
    }
}

/* ===== 3 sütun için özel stil (çok küçük ekranlar) ===== */
@media (max-width: 360px) {
    .by-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}