/* ===== CV LANDING BLOCKS - FRONTEND STYLES (UPDATED) =====
   Full-screen sections with white background theme
   File: assets/blocks-frontend.css
*/

/* === CONTAINERS AND LAYOUT === */
.cv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .cv-container {
        padding: 0 1.5rem;
    }
}

/* === FULL-WIDTH BREAKOUT UTILITY === */
.cv-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* === HERO SECTION === */
.cv-hero-block {
    background: linear-gradient(135deg, #fef3e2 0%, #fef7ed 50%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Force full-width with multiple techniques */
.cv-hero-block,
.wp-block-cv-landing-hero,
.entry-content .cv-hero-block {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

.cv-hero-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.cv-hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cv-hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #f97316, #ec4899);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cv-hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

@media (min-width: 768px) {
    .cv-hero-title {
        font-size: clamp(4rem, 10vw, 7rem);
    }
}

.cv-hero-title .gradient-text {
    background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.cv-hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #4b5563;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* === BUTTONS === */
.cv-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .cv-hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

.cv-btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    text-align: center;
    min-width: 200px;
    justify-content: center;
    gap: 0.5rem;
}

.cv-btn-primary {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cv-btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: white;
}

.cv-arrow-icon {
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cv-btn:hover .cv-arrow-icon {
    transform: translateX(4px);
}

/* === FEATURES SECTION === */
.cv-features-block {
    padding: 5rem 0;
    background: white;
}

/* Force full-width with multiple techniques */
.cv-features-block,
.wp-block-cv-landing-features,
.entry-content .cv-features-block {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

.cv-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.cv-section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cv-section-title {
        font-size: clamp(3rem, 8vw, 5rem);
    }
}

.cv-section-title .gradient-text {
    background: linear-gradient(135deg, #a855f7, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.cv-section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 32rem;
    margin: 0 auto;
}

.cv-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cv-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cv-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.cv-feature-card:nth-child(1) {
    border-color: #fed7aa;
}

.cv-feature-card:nth-child(1):hover {
    border-color: #fb923c;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.cv-feature-card:nth-child(2) {
    border-color: #e9d5ff;
}

.cv-feature-card:nth-child(2):hover {
    border-color: #a855f7;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.cv-feature-card:nth-child(3) {
    border-color: #fce7f3;
}

.cv-feature-card:nth-child(3):hover {
    border-color: #ec4899;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.cv-feature-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-feature-card:nth-child(1) .cv-feature-icon-wrapper {
    background: linear-gradient(135deg, #fb923c, #f472b6);
}

.cv-feature-card:nth-child(2) .cv-feature-icon-wrapper {
    background: linear-gradient(135deg, #a855f7, #f472b6);
}

.cv-feature-card:nth-child(3) .cv-feature-icon-wrapper {
    background: linear-gradient(135deg, #f472b6, #fb923c);
}

.cv-feature-icon {
    font-size: 2rem;
    color: white;
}

.cv-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.cv-feature-description {
    color: #4b5563;
    line-height: 1.6;
}

/* === STATS SECTION === */
.cv-stats-block {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
    color: white;
}

/* Force full-width with multiple techniques */
.cv-stats-block,
.wp-block-cv-landing-stats,
.entry-content .cv-stats-block {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

.cv-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .cv-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.cv-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.cv-stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === CTA SECTION === */
.cv-cta-block {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
    color: white;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.cv-cta-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cv-cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cv-cta-title {
        font-size: clamp(3rem, 8vw, 5rem);
    }
}

.cv-cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cv-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cv-cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

.cv-cta-primary {
    background: white;
    color: #a855f7;
}

.cv-cta-primary:hover {
    background: #f3f4f6;
    color: #a855f7;
    transform: translateY(-2px);
}

.cv-cta-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* === HERO ILLUSTRATION === */
.cv-hero-illustration {
    max-width: 64rem;
    margin: 2rem auto 0;
    position: relative;
}

.cv-hero-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border: 4px solid #fed7aa;
    margin-top: 2rem;
}

.cv-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .cv-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cv-progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-progress-bar {
    height: 1rem;
    border-radius: 9999px;
}

.cv-progress-bar.orange-pink {
    background: linear-gradient(to right, #fed7aa, #fce7f3);
    width: 75%;
}

.cv-progress-bar.purple-orange {
    background: linear-gradient(to right, #ddd6fe, #fed7aa);
    width: 50%;
}

.cv-progress-bar.pink-purple {
    background: linear-gradient(to right, #fce7f3, #ddd6fe);
    width: 66.666667%;
}

.cv-match-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cv-match-text {
    color: #059669;
    font-weight: 600;
    font-size: 1rem;
}

.cv-check-icon {
    color: white;
    font-weight: bold;
    background: #10b981;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.cv-hero-circle {
    width: 8rem;
    height: 8rem;
    background: linear-gradient(to right, #fb923c, #f472b6);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cv-hero-icon {
    font-size: 4rem;
    color: white;
}

/* Animated elements */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.cv-bounce {
    animation: bounce 2s infinite;
}

.cv-pulse {
    animation: pulse 2s infinite;
}

/* === TRUST INDICATORS === */
.cv-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.cv-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
}

.cv-trust-icon {
    color: #10b981;
    font-weight: 600;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cv-animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.cv-stat-animating {
    animation: countUp 0.6s ease-out forwards;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 640px) {
    .cv-hero-block,
    .cv-features-block,
    .cv-stats-block,
    .cv-cta-block {
        padding: 3rem 0;
    }
    
    .cv-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .cv-features-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* === ACCESSIBILITY === */
.cv-btn:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cv-btn,
    .cv-feature-card {
        transition: none;
    }
    
    .cv-animate-in,
    .cv-stat-animating {
        animation: none;
    }
    
    .cv-hero-block::before {
        animation: none;
    }
}

/* === LOADING STATES === */
.cv-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.cv-btn.cv-loading {
    color: transparent;
}

.cv-btn.cv-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === THEME INTEGRATION === */
.cv-hero-block .cv-container,
.cv-features-block .cv-container,
.cv-stats-block .cv-container,
.cv-cta-block .cv-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

@media (min-width: 768px) {
    .cv-hero-block .cv-container,
    .cv-features-block .cv-container,
    .cv-stats-block .cv-container,
    .cv-cta-block .cv-container {
        padding: 0 1.5rem !important;
    }
}

/* === BLOCK SPACING === */
.cv-hero-block + .cv-features-block,
.cv-features-block + .cv-stats-block,
.cv-stats-block + .cv-cta-block {
    margin-top: 0;
}

/* === WORDPRESS THEME COMPATIBILITY === */
.entry-content .cv-hero-block,
.entry-content .cv-features-block,
.entry-content .cv-stats-block,
.entry-content .cv-cta-block {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

/* Override common theme constraints with higher specificity */
.site-main .cv-hero-block,
.site-main .cv-features-block,
.site-main .cv-stats-block,
.site-main .cv-cta-block,
.site-content .cv-hero-block,
.site-content .cv-features-block,
.site-content .cv-stats-block,
.site-content .cv-cta-block,
.main .cv-hero-block,
.main .cv-features-block,
.main .cv-stats-block,
.main .cv-cta-block,
.content .cv-hero-block,
.content .cv-features-block,
.content .cv-stats-block,
.content .cv-cta-block {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

/* Force container overflow */
.entry-content,
.site-content,
.site-main,
.main,
.content {
    overflow-x: hidden !important;
}

/* WordPress block editor wrapper overrides */
.wp-block-cv-landing-hero,
.wp-block-cv-landing-features,
.wp-block-cv-landing-stats,
.wp-block-cv-landing-cta {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

/* === HOVER EFFECTS === */
.cv-feature-card {
    position: relative;
    overflow: hidden;
}

.cv-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    transition: left 0.6s ease;
}

.cv-feature-card:hover::before {
    left: 100%;
}

/* === PRINT STYLES === */
@media print {
    .cv-hero-block,
    .cv-features-block,
    .cv-stats-block,
    .cv-cta-block {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }
    
    .cv-btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .cv-features-block {
        background: #111827;
    }
    
    .cv-feature-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .cv-feature-title {
        color: #f9fafb;
    }
    
    .cv-feature-description {
        color: #d1d5db;
    }
    
    .cv-section-title {
        color: #f9fafb;
    }
    
    .cv-section-subtitle {
        color: #d1d5db;
    }
    
    .cv-trust-item {
        color: #d1d5db;
    }
}