/* ============================================
   Free Sections on Homepage
   ============================================ */

.free-section {
    padding: 80px 20px;
    position: relative;
}

.free-exercises-section {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.free-recipes-section {
    background: linear-gradient(180deg, #fffbeb 0%, #fef9e7 100%);
    position: relative;
    overflow: hidden;
}

.free-recipes-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.free-section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.free-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.free-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--red-500, #ff0019), var(--accent-500, #ff6f61));
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(255, 0, 25, 0.25);
}

.free-section-tag.tag-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
}

/* Cards Grid */
.free-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.free-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.free-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 0, 25, 0.15);
}

.free-card-recipe:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.free-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a1a1a;
}

.free-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.free-card:hover .free-card-image img {
    transform: scale(1.08);
}

.free-card-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: rgba(255, 255, 255, 0.2);
    font-size: 80px;
}

.free-card-empty-yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.free-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.free-card:hover .free-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.free-card-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 0, 25, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-right: 4px;
}

.free-card-recipe .free-card-play {
    background: rgba(245, 158, 11, 0.95);
    padding-right: 0;
}

.free-card:hover .free-card-play {
    transform: scale(1);
}

.free-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--red-500, #ff0019), var(--red-600, #cc0014));
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.free-card-badge.tag-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.free-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #b45309;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.free-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.free-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary, #111);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.free-card-stats {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--text-secondary, #666);
}

.free-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.free-card-stats i {
    color: var(--red-500, #ff0019);
}

.free-card-recipe .free-card-stats i {
    color: #f59e0b;
}

.free-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red-500, #ff0019);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    transition: gap 0.25s ease;
}

.free-card-recipe .free-card-cta {
    color: #d97706;
}

.free-card:hover .free-card-cta {
    gap: 12px;
}

/* ============================================
   Free Content Page (free-exercise / free-recipe)
   ============================================ */

.free-content-page {
    padding: 100px 20px 60px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    min-height: 100vh;
}

.free-content-container {
    max-width: 900px;
    margin: 0 auto;
}

.free-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary, #666);
    margin-bottom: 24px;
}

.free-breadcrumb a {
    color: var(--text-secondary, #666);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.free-breadcrumb a:hover {
    color: var(--red-500, #ff0019);
}

.free-breadcrumb i.fa-chevron-left {
    font-size: 11px;
    color: var(--text-light, #999);
}

.free-header {
    text-align: center;
    margin-bottom: 36px;
}

.free-badge-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--red-500, #ff0019), var(--accent-500, #ff6f61));
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(255, 0, 25, 0.25);
}

.free-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-primary, #111);
    margin: 0 0 16px;
    line-height: 1.2;
}

.free-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 0, 25, 0.08);
    color: var(--red-600, #cc0014);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.free-description {
    font-size: 17px;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Media Section */
.free-media-section {
    margin-bottom: 36px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.free-video-wrapper {
    width: 100%;
    background: #000;
}

.free-video-wrapper .video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.free-image-wrapper {
    width: 100%;
}

.free-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Stats */
.free-recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
    padding: 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.free-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.free-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.free-stat-info {
    display: flex;
    flex-direction: column;
}

.free-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary, #111);
    line-height: 1;
}

.free-stat-label {
    font-size: 12px;
    color: var(--text-secondary, #666);
    margin-top: 4px;
}

/* Content Sections */
.free-content-section {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.free-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary, #111);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.free-section-title i {
    color: var(--red-500, #ff0019);
    font-size: 22px;
}

.free-content-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-primary, #333);
    background: #fafafa;
    padding: 20px 24px;
    border-radius: 14px;
    border-right: 4px solid var(--red-500, #ff0019);
}

/* CTA Section */
.free-cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 28px;
    padding: 50px 40px;
    margin: 36px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.free-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 0, 25, 0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.free-cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.2), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.free-cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.free-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-500, #ff0019), var(--accent-500, #ff6f61));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 12px 32px rgba(255, 0, 25, 0.4);
}

.free-cta-content h2 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.free-cta-content p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0 0 28px;
}

.free-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.free-cta-buttons .btn {
    min-width: 180px;
}

.free-cta-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.free-cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* More Section */
.free-more-section {
    margin-top: 50px;
}

.free-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.free-mini-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.free-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.free-mini-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a1a1a;
}

.free-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.free-mini-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: rgba(255, 255, 255, 0.2);
    font-size: 48px;
}

.free-mini-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #b45309;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.free-mini-info {
    padding: 16px 18px;
}

.free-mini-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary, #111);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.free-mini-link {
    font-size: 12px;
    color: var(--red-500, #ff0019);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .free-section {
        padding: 60px 16px;
    }

    .free-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }

    .free-card-body {
        padding: 18px 20px;
    }

    .free-card-title {
        font-size: 17px;
    }

    .free-content-page {
        padding: 90px 14px 40px;
    }

    .free-title {
        font-size: 28px;
    }

    .free-content-section {
        padding: 22px 20px;
    }

    .free-section-title {
        font-size: 19px;
    }

    .free-cta-section {
        padding: 36px 24px;
        border-radius: 22px;
    }

    .free-cta-content h2 {
        font-size: 22px;
    }

    .free-cta-content p {
        font-size: 14px;
    }

    .free-cta-buttons .btn {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .free-cards-grid {
        grid-template-columns: 1fr;
    }

    .free-more-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .free-recipe-stats {
        padding: 18px;
        gap: 14px;
    }

    .free-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .free-stat-value {
        font-size: 20px;
    }
}
