/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* ===== ANIMATION PLACEHOLDER ===== */
.animation-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 4rem;
}

/* ===== ATTORNEY PLACEHOLDER ===== */
.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary);
    color: var(--text-muted);
    font-size: 3rem;
}

/* ===== VIEW ALL CONTAINER - CENTERED ===== */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-container .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.view-all-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 175, 0, 0.3);
}

.view-all-container .btn-primary i {
    transition: var(--transition);
}

.view-all-container .btn-primary:hover i {
    transform: translateX(5px);
}

/* ===== RESULTS BAR ===== */
.results-bar {
    background: var(--dark-card);
    padding: 40px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 3;
    margin-top: -40px;
    border-radius: var(--radius);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.result-item {
    padding: 20px;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-5px);
}

.result-item .amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 4px;
}

.result-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.result-item .detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-item .detail a {
    color: var(--gold);
    text-decoration: none;
}

.result-item .detail a:hover {
    color: var(--gold-light);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8edf3, #d4dce6);
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("../img/bknewset1-raw-min.jpg") center/cover;
    opacity: 0.5;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(10, 26, 43, 0.7), rgba(0, 61, 107, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 80%;
    z-index: 1;
}

.hero-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.3));
}

/* ===== PRACTICE GRID ===== */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.practice-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.practice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 26, 43, 0.95), rgba(10, 26, 43, 0.2));
    z-index: 1;
}

.practice-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.practice-card:hover img {
    transform: scale(1.1);
}

.practice-card .content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    width: 100%;
}

.practice-card .content h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.practice-card .content span {
    font-size: 0.85rem;
    opacity: 0.8;
    color: var(--text-muted);
}

/* ===== ANIMATIONS GRID ===== */
.animations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.animation-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.animation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

/* Thumbnail */
.animation-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-bg);
    flex-shrink: 0;
}

.animation-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.animation-card:hover .animation-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 26, 43, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.animation-thumb:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(233, 175, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1.8rem;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(233, 175, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--gold);
}

/* Body */
.animation-body {
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.animation-header {
    margin-bottom: 6px;
}

.animation-header h4 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.3;
}

.animation-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.animation-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.4;
}

/* Details - Only shown when content exists */
.animation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
    flex: 1;
}

.detail-section h5 {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section ul li {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.4;
}

.detail-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 0.7rem;
}

/* Footer - Always at bottom */
.animation-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-watch:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 175, 0, 0.3);
    color: var(--dark-bg);
}

/* Placeholder */
.animation-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 4rem;
}

/* ============================================
   RESPONSIVE - HOME PAGE
   ============================================ */

@media (max-width: 1200px) {
    .practice-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .animations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .animation-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .results-bar {
        margin-top: 0;
        padding: 30px 20px;
        border-radius: 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .result-item .amount {
        font-size: 1.5rem;
    }
    
    .attorney-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .practice-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .view-all-container .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .attorney-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        text-align: center;
    }
    
    .result-item .amount {
        font-size: 1.3rem;
    }
    
    .view-all-container .btn-primary {
        padding: 10px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMATION DETAILS EMPTY ===== */
.animation-details-empty {
    text-align: center;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 10px;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

.animation-details-empty i {
    margin-right: 4px;
}