/* ============================================
   GUIDES PAGE SPECIFIC STYLES
   ============================================ */

/* ============================================
   GUIDES HERO SECTION
   ============================================ */
.guides-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 150px 20px 80px;
}

.guides-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 50%, var(--navy-light) 100%);
    z-index: 0;
}

.guides-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.guides-hero-title {
    color: var(--white);
    margin-bottom: 25px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.guides-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Download counter animation effects */
.download-counter,
[data-download-counter] {
    transition: all 0.3s ease;
    display: inline-block;
}

.download-counter.celebrating {
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #FFD700;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
    100% {
        transform: scale(1);
    }
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   FILTERS SECTION
   ============================================ */
.filters-section {
    background: var(--white);
    padding: 40px 20px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--gray-200);
    border-color: var(--teal);
    color: var(--teal);
}

.filter-btn.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.search-box {
    position: relative;
    flex: 0 0 auto;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* ============================================
   GUIDES GRID
   ============================================ */
.guides-grid-section {
    padding: 80px 20px;
    background: var(--gray-50);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.guide-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.guide-card.featured {
    border: 3px solid var(--gold);
}

.guide-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.guide-badge.free {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
}

.guide-badge.featured {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--white);
}

.guide-badge.premium {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
}

.guide-badge.cornerstone-badge {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.guide-card.cornerstone {
    border: 3px solid var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    position: relative;
}

.guide-card.cornerstone::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

.guide-card.cornerstone:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.guide-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guide-icon {
    font-size: 80px;
    color: var(--white);
    opacity: 0.9;
}

/* Guide Cover Images */
.guide-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.guide-card:hover .guide-cover-img {
    transform: scale(1.05);
    object-position: center center;
}

/* Guide Title Overlay on Cover Image */
.guide-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.4) 85%, transparent 100%);
    padding: 25px 20px 20px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-title-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.5) 85%, transparent 100%);
    padding: 30px 20px 20px;
}

.guide-title-overlay h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.3px;
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.guide-card:hover .guide-overlay {
    opacity: 1;
}

.preview-btn {
    background: var(--white);
    color: var(--navy);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.preview-btn:hover {
    transform: scale(1.05);
    background: var(--gold);
    color: var(--white);
}

.guide-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-category {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.guide-title {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.guide-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.guide-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--teal);
    font-size: 0.85rem;
}

.guide-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.guide-related {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.guide-related i {
    color: var(--teal);
    margin-right: 5px;
}

.guide-related a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

.guide-related a:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 80px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ============================================
   BUNDLE OFFERS SECTION
   ============================================ */
.bundle-section {
    padding: 100px 20px;
    background: var(--white);
}

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

.section-header h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.bundle-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--teal);
}

.bundle-card.featured {
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
}

.bundle-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bundle-card.featured .bundle-badge {
    background: var(--gold);
}

.bundle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
}

.bundle-card h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.bundle-description {
    color: var(--gray-600);
    margin-bottom: 25px;
    line-height: 1.6;
}

.bundle-includes {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.bundle-includes li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.bundle-includes li:last-child {
    border-bottom: none;
}

.bundle-includes i {
    color: var(--teal);
}

.bundle-pricing {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.original-price {
    font-size: 1.2rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.bundle-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    font-family: var(--font-display);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 100px 20px;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

/* Stagger floating animation for each card */
.testimonial-card:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 4s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 1s;
}

.testimonial-card:nth-child(5) {
    animation-delay: 3s;
}

.testimonial-card:nth-child(6) {
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.testimonial-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-xl);
    animation-play-state: paused;
}

.quote-icon {
    font-size: 40px;
    color: var(--teal);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--teal);
}

.author-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.author-title {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ============================================
   LICENSING CTA SECTION
   ============================================ */
.licensing-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
}

.licensing-cta .cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
}

.licensing-cta .cta-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.licensing-cta h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.licensing-cta p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-feature i {
    font-size: 32px;
    color: var(--gold);
}

.cta-feature span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   RELATED SERVICES SECTION
   ============================================ */
.related-services {
    padding: 100px 20px;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
}

.service-card h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-tabs {
        justify-content: center;
    }

    .guides-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .hero-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .guides-hero {
        padding: 120px 20px 60px;
        min-height: 60vh;
    }

    .guides-grid-section,
    .bundle-section,
    .testimonials-section,
    .licensing-cta,
    .related-services {
        padding: 60px 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .bundles-grid,
    .testimonials-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .cta-features {
        gap: 25px;
    }

    .filters-section {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .guide-actions {
        flex-direction: column;
    }

    .guide-actions .btn {
        width: 100%;
    }
}

/* ============================================
   QUICK PREVIEW MODAL
   ============================================ */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.preview-modal.active {
    display: block;
}

.preview-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(5px);
}

.preview-modal-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--navy);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.preview-modal-close:hover {
    background: var(--teal);
    transform: rotate(90deg);
}

.preview-modal-body {
    padding: 60px 50px 50px;
}

/* Preview Header with Cover Image */
.preview-header-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.preview-cover-image {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.preview-header-text {
    flex: 1;
}

.preview-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin: 0;
    text-align: left;
}

.preview-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.preview-content h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.preview-content p {
    margin-bottom: 20px;
}

.preview-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.preview-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
}

.preview-content li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: var(--teal);
    font-weight: bold;
}

.preview-content .highlight-box {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--teal);
    margin: 25px 0;
}

.preview-content .emoji {
    font-size: 1.3rem;
    margin-right: 8px;
}

.preview-actions {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.preview-actions .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .preview-modal-content {
        margin: 20px;
        max-height: 90vh;
    }

    .preview-modal-body {
        padding: 50px 30px 30px;
    }

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

    .preview-content {
        font-size: 1rem;
    }

    /* Mobile preview header */
    .preview-header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .preview-cover-image {
        width: 100px;
        height: 133px;
    }

    .preview-header-text {
        text-align: center;
    }

    .preview-title {
        text-align: center;
    }
}
