/* Common Listing Page Styles - Affirmations, Videos, Blog */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

body.preload * {
    animation-duration: 0s !important;
    -webkit-animation-duration: 0s !important;
    transition: background-color 0s, opacity 0s, color 0s, width 0s, height 0s, padding 0s, margin 0s !important;
}

/* Container */
.containers {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #002f41 0%, #004d6d 50%, #006994 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-section .title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
}

.hero-section .subtitle {
    color: #4dd0e1;
    font-size: 16px;
    margin: 0 0 25px;
    font-weight: 400;
    position: relative;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #4267B2, #3b5998);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d95e8);
}

.share-btn i {
    font-size: 16px;
}

/* Content Section */
.content-section {
    padding: 40px 20px;
    min-height: 60vh;
}

/* Item Cards */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.item-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    color: #333;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e65100, #ff8a50);
    opacity: 0;
    transition: opacity 0.2s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.item-card:hover::before {
    opacity: 1;
}

.item-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #004361;
    margin: 0;
    line-height: 1.4;
}

.item-card .card-category {
    display: inline-block;
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-card .card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 18px;
    transition: color 0.2s, transform 0.2s;
}

.item-card:hover .card-arrow {
    color: #e65100;
    transform: translateY(-50%) translateX(3px);
}

/* Stats Badge */
.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    margin-top: 20px;
    position: relative;
}

.stats-badge i {
    color: #4dd0e1;
}

/* Hero CTA Banner */
.hero-cta-banner {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 25px;
    margin-bottom: 25px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.hero-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-cta-banner:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(230, 81, 0, 0.5);
}

.hero-cta-banner .cta-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hero-cta-banner .cta-text {
    text-align: left;
}

.hero-cta-banner .cta-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    display: block;
}

.hero-cta-banner .cta-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 5px 0 0;
    display: block;
}

.hero-cta-banner .cta-arrow {
    font-size: 20px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.hero-cta-banner:hover .cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .hero-cta-banner {
        padding: 10px 18px;
        gap: 12px;
    }

    .hero-cta-banner .cta-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .hero-cta-banner .cta-title {
        font-size: 13px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #e65100, #ff8a50);
    padding: 40px 20px;
    text-align: center;
}

.cta-section h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    margin: 0 0 20px;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #e65100;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Footer override */
footer {
    padding-top: 20px;
    border-top: none;
    background-color: #1a1a2e !important;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2) { animation-delay: 0.1s; }
.item-card:nth-child(3) { animation-delay: 0.15s; }
.item-card:nth-child(4) { animation-delay: 0.2s; }
.item-card:nth-child(5) { animation-delay: 0.25s; }
.item-card:nth-child(6) { animation-delay: 0.3s; }
.item-card:nth-child(7) { animation-delay: 0.35s; }
.item-card:nth-child(8) { animation-delay: 0.4s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }

    .hero-section .title {
        font-size: 26px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 180px;
        justify-content: center;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h3 {
        font-size: 20px;
    }
}

/* Row fix */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
