/* ============================================
   BEST PRACTICES PAGE STYLES
   ============================================ */

.best-practices-page {
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* ===== HERO SECTION ===== */
.bp-hero {
    background: linear-gradient(135deg, #2d0a0a 0%, #4a0a0a 25%, #6b0a0a 50%, #4a0a0a 75%, #2d0a0a 100%);
    background-size: 200% 200%;
    animation: heroGradientShift 15s ease infinite;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 2px, transparent 2px);
    background-size: 24px 24px;
    pointer-events: none;
}

.bp-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F57B2C, #AC1A2C, #14776D, #0B4F66, #F57B2C);
    animation: borderShine 4s ease infinite;
    background-size: 200% 100%;
}

@keyframes borderShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bp-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.orange-text {
    color: #F57B2C;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.bp-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== STATS SECTION ===== */
.bp-stats {
    padding: 40px 0;
    background: linear-gradient(135deg, #F3FAFA 0%, #E8F4F4 100%);
}

.bp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bp-stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.08);
}

.bp-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
}

.bp-stat-card i {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.bp-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d0a0a;
}

.bp-stat-label {
    font-size: 0.8rem;
    color: #465256;
}

/* ===== FILTER SECTION ===== */
.bp-filter-section {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.bp-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bp-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.bp-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.bp-search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 40px;
    font-size: 0.85rem;
}

.bp-search-box input:focus {
    outline: none;
    border-color: #F57B2C;
}

.bp-filter-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bp-filter-select {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 40px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.bp-reset-btn {
    padding: 0.7rem 1.2rem;
    background: #f0f0f0;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.bp-reset-btn:hover {
    background: #e0e0e0;
}

/* ===== BEST PRACTICES GRID ===== */
.bp-grid-section {
    padding: 3rem 0;
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bp-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.08);
    position: relative;
}

.bp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.15);
}

.bp-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #F57B2C, #AC1A2C);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bp-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.bp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bp-card:hover .bp-card-image img {
    transform: scale(1.05);
}

.bp-card-type {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bp-card-body {
    padding: 1.2rem;
}

.bp-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d0a0a;
    margin-bottom: 0.5rem;
}

.bp-card-body p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.bp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.bp-card-meta i {
    color: #8B0000;
    margin-right: 0.2rem;
}

.bp-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 1rem;
}

.bp-card-stats i {
    margin-right: 0.2rem;
}

.bp-card-stats i.fa-heart {
    color: #e74c3c;
}

.bp-view-btn {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, #8B0000, #5A0000);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bp-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    background: linear-gradient(135deg, #F57B2C, #AC1A2C);
}

/* ===== MODAL ===== */
.bp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.bp-modal.active {
    display: flex;
}

.bp-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
    position: sticky;
    top: 0;
    background: white;
    border-radius: 24px 24px 0 0;
}

.bp-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d0a0a;
    margin: 0;
}

.bp-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.bp-modal-close:hover {
    color: #8B0000;
}

.bp-modal-body {
    padding: 1.5rem;
}

/* Video Container - No Download */
.bp-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.bp-video-container iframe,
.bp-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Image Gallery */
.bp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.bp-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.bp-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}

.bp-gallery-item:hover img {
    transform: scale(1.05);
}

/* Document Download */
.bp-document-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.bp-document-box i {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.bp-document-box h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.bp-download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #8B0000, #5A0000);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Comments Section */
.bp-comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.bp-comment {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bp-comment-author {
    font-weight: 600;
    color: #2d0a0a;
    font-size: 0.85rem;
}

.bp-comment-text {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.3rem;
}

.bp-comment-date {
    font-size: 0.65rem;
    color: #999;
    margin-top: 0.3rem;
}

.bp-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    transition: all 0.2s;
}

.bp-like-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

.bp-like-btn.liked {
    color: #e74c3c;
}

/* Empty State */
.bp-empty-state {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 20px;
}

.bp-empty-state i {
    font-size: 3rem;
    color: #8B0000;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.bp-empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.bp-empty-state p {
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .bp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bp-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .bp-hero {
        padding: 50px 0;
    }
    
    .bp-hero-title {
        font-size: 1.8rem;
    }
    
    .bp-grid {
        grid-template-columns: 1fr;
    }
    
    .bp-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .bp-filter-group {
        flex-direction: column;
    }
    
    .bp-filter-select,
    .bp-reset-btn {
        width: 100%;
    }
}