/* ==========================================
   BONGOSOUL COMPONENTS
   Reusable UI Components (Cards, Buttons, etc.)
   ========================================== */

/* Post Card Component */
.post-card {
    background: var(--white);
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(44, 44, 44, 0.02));
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.post-card.featured::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    z-index: 10;
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08);
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.category:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-1px);
}

.date {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    flex: 1;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.post-title a {
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.post-title a:hover {
    color: var(--gold);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e3e8ef;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.views, .comments {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.views:hover, .comments:hover {
    color: var(--gold);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
    position: relative;
}

.section-title {
    font-size: 2rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #000000, #2c2c2c);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: var(--white);
    background: linear-gradient(135deg, #2c2c2c, #000000);
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: #0D9488;
    color: var(--white);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-featured {
    background: var(--gold);
    color: var(--white);
}

.badge-trending {
    background: var(--red);
    color: var(--white);
}

.badge-new {
    background: #4CAF50;
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    min-width: 40px;
    text-align: center;
    background: var(--white);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--gold);
    color: var(--white);
}

.pagination .current {
    background: var(--gold);
    color: var(--white);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(44, 44, 44, 0.04));
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state-message {
    color: var(--text-muted);
}

/* Section Cards */
.section-card {
    background: var(--white);
    border: 2px solid #e3e8ef;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.section-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #000000, #2c2c2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
