/**
 * Premium Modal Styles - Magazine Quality
 * Elegant, structured, no emojis
 */

/* Modal Overlay */
.sf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FAFAF8;
    z-index: 100000;
    overflow-y: auto;
}

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

/* Compact Premium Header */
.sf-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: white;
    border-bottom: 1px solid #E8E6E1;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.sf-modal-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sf-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #E8E6E1;
}

.sf-modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #1A2332;
    letter-spacing: -0.01em;
}

.sf-modal-role {
    font-size: 11px;
    color: #8B8680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sf-modal-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #D4D2CD;
    color: #1A2332;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sf-modal-close:hover {
    background: #1A2332;
    color: white;
    border-color: #1A2332;
}

/* Modal Body */
.sf-modal-body {
    padding-top: 120px;
    padding-bottom: 120px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Messages Container */
.sf-modal-messages {
    padding: 0 64px;
    min-height: 400px;
}

/* Analysis Title - Outside Cards */
.sf-analysis-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 300;
    color: #1A2332;
    text-align: center;
    margin: 64px 0 48px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sf-analysis-subtitle {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    color: #8B8680;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: -32px;
    margin-bottom: 48px;
}

/* Message Styling */
.sf-modal-message {
    margin-bottom: 48px;
    animation: fadeInMessage 0.5s ease;
}

.sf-modal-message.user {
    text-align: right;
}

.sf-modal-message.senna {
    text-align: left;
}

/* Centered Playfair Text */
.sf-message-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 300;
    color: #1A2332;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    letter-spacing: -0.01em;
}

.sf-modal-message.user .sf-message-text {
    color: #4A5568;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 16px;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    max-width: 600px;
}

/* Visual Cards Grid */
.sf-analysis-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.sf-analysis-cards.single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 48px auto;
}

/* Individual Analysis Card */
.sf-analysis-card {
    background: white;
    border: 1px solid #E8E6E1;
    padding: 40px;
    transition: all 0.3s ease;
}

.sf-analysis-card:hover {
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
    transform: translateY(-2px);
}

.sf-card-header {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 300;
    color: #1A2332;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0EDE8;
}

.sf-card-content {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4A5568;
}

.sf-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-card-list li {
    padding: 12px 0;
    border-bottom: 1px solid #F8F6F3;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sf-card-list li:last-child {
    border-bottom: none;
}

.sf-list-number {
    width: 24px;
    height: 24px;
    background: #1A2332;
    color: white;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-list-bullet {
    width: 6px;
    height: 6px;
    background: #1A2332;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.sf-list-text {
    flex: 1;
    color: #4A5568;
    font-size: 14px;
    line-height: 1.6;
}

/* Action Cards */
.sf-action-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 64px 0;
}

.sf-action-card {
    background: white;
    border: 1px solid #1A2332;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-action-card:hover {
    background: #1A2332;
    color: white;
}

.sf-action-card:hover .sf-action-title {
    color: white;
}

.sf-action-card:hover .sf-action-desc {
    color: rgba(255, 255, 255, 0.8);
}

.sf-action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-action-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sf-action-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #1A2332;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sf-action-desc {
    font-size: 12px;
    color: #8B8680;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

/* Score Display */
.sf-score-card {
    background: linear-gradient(135deg, #1A2332, #2A3442);
    color: white;
    padding: 48px;
    text-align: center;
    margin: 48px auto;
    max-width: 400px;
}

.sf-score-number {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
}

.sf-score-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Premium Input Section */
.sf-modal-input-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E8E6E1;
    padding: 24px 48px;
    z-index: 100001;
}

.sf-input-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
}

.sf-modal-textarea {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #D4D2CD;
    background: #FAFAF8;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    resize: none;
    height: 48px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.sf-modal-textarea:focus {
    outline: none;
    border-color: #1A2332;
    background: white;
    height: 64px;
}

.sf-modal-send {
    padding: 14px 32px;
    background: #1A2332;
    color: white;
    border: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    font-weight: 500;
}

.sf-modal-send:hover {
    background: #0A1322;
    transform: translateY(-1px);
}

/* Analysis Sections */
.sf-analysis-section {
    margin: 48px 0;
}

.sf-section-header {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 300;
    color: #1A2332;
    text-align: center;
    margin-bottom: 32px;
}

/* Recruiter Perspective Cards */
.sf-perspective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.sf-perspective-card {
    background: white;
    border-left: 3px solid #1A2332;
    padding: 24px;
}

.sf-perspective-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B8680;
    margin-bottom: 12px;
}

.sf-perspective-content {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
}

/* Optimization Strategy */
.sf-strategy-card {
    background: #F8F6F3;
    border: 1px solid #E8E6E1;
    padding: 32px;
    margin: 32px 0;
}

.sf-strategy-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sf-strategy-step {
    display: flex;
    gap: 16px;
}

.sf-step-number {
    width: 32px;
    height: 32px;
    background: #1A2332;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.sf-step-text {
    flex: 1;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization */
@media (max-width: 1024px) {
    .sf-analysis-cards {
        grid-template-columns: 1fr;
    }
    
    .sf-action-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sf-perspective-grid {
        grid-template-columns: 1fr;
    }
    
    .sf-strategy-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header */
    .sf-modal-header {
        padding: 0 20px;
        height: 64px;
    }
    
    .sf-modal-name {
        font-size: 16px;
    }
    
    .sf-modal-role {
        font-size: 10px;
    }
    
    .sf-modal-avatar {
        width: 36px;
        height: 36px;
    }
    
    /* Body */
    .sf-modal-body {
        padding-top: 80px;
        padding-bottom: 100px;
    }
    
    .sf-modal-messages {
        padding: 0 20px;
    }
    
    /* Typography */
    .sf-analysis-title {
        font-size: 28px;
        margin: 32px 0 24px;
    }
    
    .sf-message-text {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .sf-card-header {
        font-size: 20px;
    }
    
    .sf-section-header {
        font-size: 24px;
    }
    
    /* Cards */
    .sf-action-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px 0;
    }
    
    .sf-analysis-card {
        padding: 24px;
    }
    
    .sf-action-card {
        padding: 24px 20px;
    }
    
    /* Input Section */
    .sf-modal-input-section {
        padding: 16px 20px;
    }
    
    .sf-input-container {
        gap: 12px;
    }
    
    .sf-modal-textarea {
        font-size: 14px;
        padding: 12px 16px;
        height: 44px;
    }
    
    .sf-modal-send {
        padding: 12px 24px;
        height: 44px;
        font-size: 12px;
    }
    
    /* Score Card */
    .sf-score-card {
        padding: 32px;
    }
    
    .sf-score-number {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    /* Even more compact */
    .sf-modal-header {
        padding: 0 16px;
    }
    
    .sf-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .sf-analysis-title {
        font-size: 24px;
    }
    
    .sf-analysis-card {
        padding: 20px;
    }
    
    .sf-modal-input-section {
        padding: 12px 16px;
    }
    
    .sf-modal-send {
        padding: 12px 20px;
    }
}