/**
 * Premium Override CSS
 * Complete override and conflict resolution
 * Forces premium styles throughout the launcher
 * 
 * @package SENNA_Launcher
 * @since 4.0.0
 */

/* ===========================
   REMOVE OLD VARIABLES
   =========================== */
:root {
    /* Remove all old variables */
    --cream-bg: initial !important;
    --cream-light: initial !important;
    --dark-green: initial !important;
    --green-gradient-start: initial !important;
    --green-gradient-end: initial !important;
    --header-blue: initial !important;
    --text-dark: initial !important;
    --text-light: initial !important;
    --accent-gold: initial !important;
    --border-light: initial !important;
    --navy-text: initial !important; /* From template inline styles */
}

/* ===========================
   MAIN CONTAINER SYSTEM
   =========================== */
.skillfarm-launcher-container {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: var(--premium-cream) !important;
    overflow: hidden !important;
}

/* Premium texture overlay */
.skillfarm-launcher-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(232, 226, 213, 0.03) 35px,
            rgba(232, 226, 213, 0.03) 70px
        ) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.launcher-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(13, 53, 62, 0.02) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.main-container {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* ===========================
   HEADER CONTAINER
   =========================== */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--space-xl) var(--space-2xl) !important;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(251, 247, 240, 0.98) 100%) !important;
    border-bottom: 1px solid var(--premium-pearl) !important;
    box-shadow: var(--premium-elevation-1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    backdrop-filter: blur(10px) !important;
}

/* Logo Section */
.logo-section {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-md) !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
}

.logo-section:hover {
    transform: translateX(4px) !important;
}

.leaf-icon {
    width: 32px !important;
    height: 32px !important;
    transition: all var(--transition-base) !important;
}

.leaf-icon path {
    stroke: var(--premium-cognac) !important;
    stroke-width: 2 !important;
    fill: none !important;
    transition: all var(--transition-base) !important;
}

.logo-section:hover .leaf-icon {
    transform: rotate(10deg) scale(1.1) !important;
}

.logo-section:hover .leaf-icon path {
    stroke: var(--premium-cognac-hover) !important;
}

.logo-text {
    font-family: var(--font-display) !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: var(--premium-espresso) !important;
    letter-spacing: 0.08em !important;
    transition: all var(--transition-base) !important;
}

.logo-section:hover .logo-text {
    color: var(--premium-cognac) !important;
}

/* ===========================
   JOURNEY PROGRESS
   =========================== */
.journey-progress {
    display: flex !important;
    gap: var(--space-xs) !important;
    align-items: center !important;
    padding: var(--space-sm) var(--space-lg) !important;
    background: var(--premium-ivory) !important;
    border-radius: 30px !important;
    box-shadow: inset 0 2px 4px rgba(13, 53, 62, 0.05) !important;
}

.journey-step {
    position: relative !important;
    padding: var(--space-xs) var(--space-md) !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
    border-radius: 20px !important;
    opacity: 0.6 !important;
}

.journey-step:hover {
    opacity: 1 !important;
    background: rgba(13, 53, 62, 0.05) !important;
}

.journey-step.active {
    opacity: 1 !important;
    background: var(--premium-cognac) !important;
}

.journey-step.active .stage-indicator {
    color: var(--premium-white) !important;
}

.stage-indicator {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-xs) !important;
}

.stage-icon {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    transition: all var(--transition-base) !important;
}

.journey-step.active .stage-icon {
    fill: var(--premium-white) !important;
}

.stage-text {
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    color: var(--premium-charcoal) !important;
    transition: all var(--transition-base) !important;
}

.journey-step.active .stage-text {
    color: var(--premium-white) !important;
    font-weight: 600 !important;
}

/* Journey step connector lines */
.journey-step:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    right: -4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 1px !important;
    background: var(--premium-pearl) !important;
}

/* ===========================
   USER WELCOME
   =========================== */
.user-welcome {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    background: var(--premium-ivory) !important;
    border: 1px solid var(--premium-pearl) !important;
    border-radius: 20px !important;
    transition: all var(--transition-base) !important;
    cursor: pointer !important;
}

.user-welcome:hover {
    background: var(--premium-white) !important;
    border-color: var(--premium-cognac) !important;
    box-shadow: var(--premium-elevation-1) !important;
}

.welcome-text {
    font-family: var(--font-body) !important;
    font-size: var(--text-body) !important;
    color: var(--premium-espresso) !important;
    font-weight: 500 !important;
}

.user-dropdown {
    font-size: 10px !important;
    color: var(--premium-charcoal) !important;
    transition: transform var(--transition-base) !important;
}

.user-welcome:hover .user-dropdown {
    transform: translateY(2px) !important;
}

/* ===========================
   CONTENT AREA
   =========================== */
.content-area {
    position: relative !important;
    width: 100% !important;
    min-height: calc(100vh - 120px) !important;
    padding: var(--space-3xl) var(--space-2xl) !important;
    background: var(--premium-cream) !important;
}

/* ===========================
   ONBOARDING STEPS
   =========================== */
.onboarding-step {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
}

.onboarding-step.active {
    display: block !important;
    opacity: 1 !important;
    animation: premiumFadeIn 0.6s ease forwards !important;
}

.focus-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
}

/* ===========================
   STEP 6 - REPORT COMPONENTS
   =========================== */

/* Profile Card */
.profile-card {
    background: var(--premium-ivory) !important;
    border: 1px solid var(--premium-pearl) !important;
    border-radius: 12px !important;
    padding: var(--space-xl) !important;
    margin-bottom: var(--space-2xl) !important;
    box-shadow: var(--premium-elevation-1) !important;
    transition: all var(--transition-base) !important;
}

.profile-card:hover {
    box-shadow: var(--premium-elevation-2) !important;
    transform: translateY(-2px) !important;
}

.profile-card-header {
    font-family: var(--font-body) !important;
    font-size: var(--text-micro) !important;
    text-transform: uppercase !important;
    letter-spacing: var(--tracking-widest) !important;
    color: var(--premium-charcoal) !important;
    font-weight: 600 !important;
    margin-bottom: var(--space-lg) !important;
    padding-bottom: var(--space-md) !important;
    border-bottom: 1px solid var(--premium-pearl) !important;
}

.profile-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-lg) !important;
}

.profile-item {
    text-align: left !important;
}

.profile-icon {
    color: var(--premium-cognac) !important;
    margin-bottom: var(--space-xs) !important;
}

.profile-label {
    font-family: var(--font-body) !important;
    font-size: var(--text-micro) !important;
    text-transform: uppercase !important;
    letter-spacing: var(--tracking-wide) !important;
    color: var(--premium-charcoal) !important;
    opacity: 0.7 !important;
    margin-bottom: var(--space-xs) !important;
}

.profile-value {
    font-family: var(--font-body) !important;
    font-size: var(--text-body) !important;
    color: var(--premium-espresso) !important;
    font-weight: 600 !important;
}

/* SENNA Message Line */
.senna-message-line {
    margin-bottom: var(--space-2xl) !important;
    padding: var(--space-lg) !important;
    background: linear-gradient(135deg, var(--premium-ivory) 0%, var(--premium-cream) 100%) !important;
    border-left: 3px solid var(--premium-cognac) !important;
    border-radius: 8px !important;
    text-align: left !important;
    position: relative !important;
}

#senna-brief-message {
    font-family: var(--font-display) !important;
    font-size: var(--text-body-lg) !important;
    color: var(--premium-espresso) !important;
    font-style: italic !important;
}

.typing-cursor {
    display: inline-block !important;
    width: 2px !important;
    height: 20px !important;
    background: var(--premium-cognac) !important;
    margin-left: 2px !important;
    animation: blink 1s infinite !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Advantages Section */
.advantages-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-lg) !important;
    margin-top: var(--space-xl) !important;
}

.advantage-card {
    display: flex !important;
    gap: var(--space-md) !important;
    padding: var(--space-lg) !important;
    background: var(--premium-ivory) !important;
    border: 1px solid var(--premium-pearl) !important;
    border-radius: 8px !important;
    text-align: left !important;
    transition: all var(--transition-base) !important;
}

.advantage-card:hover {
    background: var(--premium-white) !important;
    border-color: var(--premium-cognac) !important;
    transform: translateX(4px) !important;
}

.advantage-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: var(--premium-cognac) !important;
    color: var(--premium-white) !important;
    border-radius: 50% !important;
    font-family: var(--font-display) !important;
    font-size: var(--text-body) !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

.advantage-content {
    flex: 1 !important;
}

.advantage-content h4 {
    font-family: var(--font-body) !important;
    font-size: var(--text-body) !important;
    color: var(--premium-espresso) !important;
    font-weight: 600 !important;
    margin-bottom: var(--space-xs) !important;
}

.advantage-content p {
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    color: var(--premium-charcoal) !important;
    line-height: 1.5 !important;
}

/* Priority Actions Card */
.priority-actions-card {
    background: var(--premium-ivory) !important;
    border: 1px solid var(--premium-pearl) !important;
    border-radius: 12px !important;
    padding: var(--space-2xl) !important;
    margin-top: var(--space-lg) !important;
}

.actions-intro {
    font-family: var(--font-body) !important;
    font-size: var(--text-body) !important;
    color: var(--premium-charcoal) !important;
    margin-bottom: var(--space-xl) !important;
    padding-bottom: var(--space-md) !important;
    border-bottom: 1px solid var(--premium-pearl) !important;
}

.priority-action {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-lg) !important;
    padding: var(--space-md) 0 !important;
    border-bottom: 1px solid var(--premium-pearl) !important;
}

.priority-action:last-child {
    border-bottom: none !important;
}

.action-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: var(--premium-sage) !important;
    color: var(--premium-white) !important;
    border-radius: 50% !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

.action-content {
    flex: 1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.action-content span {
    font-family: var(--font-body) !important;
    font-size: var(--text-body) !important;
    color: var(--premium-espresso) !important;
}

.action-btn {
    padding: var(--space-xs) var(--space-md) !important;
    background: var(--premium-cognac) !important;
    color: var(--premium-white) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: var(--tracking-wide) !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
}

.action-btn:hover {
    background: var(--premium-cognac-hover) !important;
    transform: translateY(-2px) !important;
}

.timing-note {
    margin-top: var(--space-lg) !important;
    padding-top: var(--space-lg) !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    color: var(--premium-charcoal) !important;
    font-style: italic !important;
    text-align: center !important;
}

/* Market Intelligence Card */
.market-intel-card {
    background: var(--premium-ivory) !important;
    border: 1px solid var(--premium-pearl) !important;
    border-radius: 12px !important;
    padding: var(--space-2xl) !important;
    margin-top: var(--space-lg) !important;
}

.intel-header {
    font-family: var(--font-body) !important;
    font-size: var(--text-body-lg) !important;
    color: var(--premium-espresso) !important;
    font-weight: 600 !important;
    margin-bottom: var(--space-xl) !important;
}

.firm-card {
    padding: var(--space-lg) !important;
    background: var(--premium-white) !important;
    border: 1px solid var(--premium-pearl) !important;
    border-radius: 8px !important;
    margin-bottom: var(--space-md) !important;
    transition: all var(--transition-base) !important;
}

.firm-card:hover {
    border-color: var(--premium-cognac) !important;
    box-shadow: var(--premium-elevation-1) !important;
}

.firm-card.partially-visible {
    opacity: 0.6 !important;
    filter: blur(2px) !important;
}

.firm-name {
    font-family: var(--font-display) !important;
    font-size: var(--text-body-lg) !important;
    color: var(--premium-espresso) !important;
    font-weight: 500 !important;
    margin-bottom: var(--space-xs) !important;
}

.firm-match,
.firm-recent {
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    color: var(--premium-charcoal) !important;
    margin-bottom: var(--space-xs) !important;
}

.firm-deadline {
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    color: var(--premium-charcoal) !important;
}

.deadline-highlight {
    color: var(--premium-cognac) !important;
    font-weight: 600 !important;
}

.locked-content {
    text-align: center !important;
    padding: var(--space-lg) !important;
}

.unlock-all-btn {
    padding: var(--space-sm) var(--space-xl) !important;
    background: var(--premium-cognac) !important;
    color: var(--premium-white) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-caption) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: var(--tracking-widest) !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
}

.unlock-all-btn:hover {
    background: var(--premium-cognac-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--premium-elevation-2) !important;
}

/* ===========================
   REPORT SECTION BASE
   =========================== */
.report-section {
    margin-bottom: var(--space-3xl) !important;
}

.section-title {
    font-family: var(--font-display) !important;
    font-size: var(--text-h3) !important;
    color: var(--premium-espresso) !important;
    font-weight: 400 !important;
    margin-bottom: var(--space-xl) !important;
    text-align: center !important;
    position: relative !important;
}

.section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 2px !important;
    background: var(--premium-cognac) !important;
}

/* ===========================
   RESPONSIVE OVERRIDES
   =========================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column !important;
        gap: var(--space-lg) !important;
        padding: var(--space-lg) !important;
    }
    
    .journey-progress {
        width: 100% !important;
        justify-content: center !important;
        overflow-x: auto !important;
    }
    
    .profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .advantages-container {
        grid-template-columns: 1fr !important;
    }
    
    .content-area {
        padding: var(--space-xl) var(--space-lg) !important;
    }
}

@media (max-width: 480px) {
    .journey-step .stage-text {
        display: none !important;
    }
    
    .profile-grid {
        grid-template-columns: 1fr !important;
    }
    
    .action-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--space-sm) !important;
    }
    
    .action-btn {
        align-self: flex-start !important;
    }
}

/* ===========================
   FORCE PREMIUM FONTS
   =========================== */
body,
input,
textarea,
select,
button {
    font-family: var(--font-body) !important;
}

h1, h2, h3 {
    font-family: var(--font-display) !important;
}

/* ===========================
   REMOVE ALL OLD STYLES
   =========================== */
.header,
.header-content,
.logo,
.mode-switcher-container,
.mode-switcher,
.mode-option,
.input-container,
.input-wrapper,
.senna-ai-button,
.main-input,
.send-button,
.cards-section,
.section-header,
.section-subtitle,
.card-deck-wrapper,
.card-deck-container,
.card-deck,
.card,
.card-content,
.card-header-row,
.card-icon,
.card-type,
.card-title,
.card-description,
.card-skills,
.skill-tag,
.card-button,
.nav-arrow,
.load-more-container,
.load-more-button,
.magazine-modal,
.magazine-content,
.magazine-header,
.close-modal,
.magazine-body,
.preview-section,
.preview-title,
.preview-grid,
.preview-card,
.modal-actions,
.modal-button {
    /* These classes are not used in the template */
    display: none !important;
}

/* ===========================
   END OF PREMIUM OVERRIDES
   =========================== */