/* 
----------------------------------------------
  Premium Blog & Haber Styler - Style.css
---------------------------------------------- 
*/

:root {
    --pm-blog-bg: #0f172a; /* Deep Dark */
    --pm-accent: #a855f7;  /* Volandex Purple */
    --pm-text: #f1f5f9;
    --pm-muted: #94a3b8;
    --pm-card-bg: rgba(255, 255, 255, 0.03);
    --pm-glass: rgba(168, 85, 247, 0.08);
}

.pm-blog-wrapper {
    background: var(--pm-blog-bg);
    color: var(--pm-text);
    font-family: 'Inter', sans-serif;
    padding-top: 140px !important; /* Optimized padding for sticky header */
    padding-bottom: 60px;
    min-height: 100vh;
    position: relative;
}

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

/* 1. HERO SECTION */
.pm-blog-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15), transparent);
}

.pm-blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--pm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pm-breadcrumbs {
    color: var(--pm-muted);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.pm-breadcrumbs a {
    color: var(--pm-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.pm-breadcrumbs a:hover {
    color: #fff;
}

/* 2. MAIN GRID */
.pm-blog-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 40px;
}

/* 3. BLOG CARDS */
.pm-blog-card {
    background: var(--pm-card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pm-blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

.pm-card-inner {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.pm-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.pm-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.pm-card-content-wrap {
    padding: 0;
    position: relative;
    z-index: 3;
}

.pm-blog-title {
    padding: 25px 30px 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.pm-blog-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.pm-blog-title a:hover {
    color: var(--pm-accent);
}

.pm-card-meta {
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-badge {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pm-stars {
    color: #fbbf24;
    font-size: 16px;
    letter-spacing: 2px;
}

.pm-card-excerpt {
    padding: 30px;
    color: var(--pm-muted);
    line-height: 1.8;
    font-size: 16px;
}

/* 4. SIDEBAR */
.pm-sidebar-widget {
    margin-bottom: 40px;
}

.pm-search-widget form {
    position: relative;
    width: 100%;
}

.pm-search-widget input {
    width: 100%;
    padding: 16px 50px 16px 24px;
    background: var(--pm-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.pm-search-widget input:focus {
    border-color: var(--pm-accent);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.pm-search-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--pm-muted);
    font-size: 18px;
    cursor: pointer;
}

.pm-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--pm-accent);
}

.pm-glass-card {
    background: var(--pm-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 20px;
    padding: 25px;
}

.pm-categories-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pm-categories-list a {
    color: var(--pm-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.pm-categories-list a:hover {
    color: #fff;
    transform: translateX(5px);
}

.pm-featured-list .pm-feat-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-featured-list .pm-feat-item:last-child {
    border: none;
}

.pm-feat-text {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

/* 5. RESPONSIVE */
@media (max-width: 991px) {
    .pm-blog-main-grid {
        display: block !important; /* Force block to avoid grid clipping */
        width: 100% !important;
    }
    
    .pm-blog-content {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
    }
    
    .pm-blog-card {
        margin-bottom: 50px !important;
        display: block !important;
        clear: both !important;
    }

    .pm-blog-sidebar {
        display: block !important;
        margin-top: 60px !important;
    }
}

/* 6. SINGLE POST STYLES - ULTRA REDESIGN */
.pm-single-wrapper {
    background: var(--pm-blog-bg);
    color: #fff;
    padding-top: 140px !important; /* Optimized padding for sticky header */
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
}

.pm-single-header {
    margin-bottom: 80px !important; /* Forces enough space before content starts */
    text-align: center;
    position: relative;
    z-index: 5;
}

.pm-single-meta-top {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pm-single-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pm-single-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

.pm-single-featured-img {
    margin-bottom: 40px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pm-single-featured-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pm-single-content {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
}

.pm-single-content p {
    margin-bottom: 25px;
}

.pm-single-content h2, 
.pm-single-content h3 {
    color: #fff;
    margin: 40px 0 20px;
}

/* Comments & Forms Redesign */
.pm-comments-section {
    margin-top: 60px;
    padding: 40px;
}

#respond {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--pm-accent);
}

.comment-form input, 
.comment-form textarea {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 12px 18px !important;
    color: #fff !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-bottom: 15px !important;
}

.comment-form #submit {
    background: var(--pm-accent) !important;
    color: #fff !important;
    padding: 14px 40px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.comment-form #submit:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4) !important;
    transform: translateY(-2px) !important;
}

.pm-single-breadcrumbs {
    font-size: 13px;
    color: var(--pm-muted);
}

.pm-single-breadcrumbs a {
    color: var(--pm-muted);
    text-decoration: none;
}

.pm-single-breadcrumbs a:hover {
    color: #fff;
}

/* 7. RESPONSIVE FOR SINGLE */
@media (max-width: 991px) {
    .pm-single-main-grid {
        grid-template-columns: 1fr;
    }
    
    .pm-single-title {
        font-size: 34px;
    }
}
