/* Brand Theme for iWork Resume Builder */
:root {
    /* Your Brand Colors */
    --brand-primary: #ff7e5f;
    --brand-secondary: #6ec1e4;
    --brand-gradient: linear-gradient(135deg, #6ec1e4, #4b8be1, #ff7e5f);
    --brand-gradient-reverse: linear-gradient(135deg, #ff7e5f, #4b8be1, #6ec1e4);
    
    /* Elegant Professional Palette */
    --elegant-dark: #2c3e50;
    --elegant-gold: #f39c12;
    --elegant-silver: #95a5a6;
    --elegant-white: #ffffff;
    --elegant-light: #ecf0f1;
    
    /* Updated Brand Variables */
    --primary-color: #ff7e5f;
    --primary-dark: #e6714d;
    --primary-light: #ff9478;
    --secondary-color: #6ec1e4;
    --accent-color: #4b8be1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    
    /* Sophisticated Gradients */
    --gradient-primary: linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #ff7e5f 100%);
    --gradient-secondary: linear-gradient(135deg, #6ec1e4 0%, #4b8be1 50%, #6ec1e4 100%);
    --gradient-brand: linear-gradient(135deg, #6ec1e4 0%, #4b8be1 35%, #ff7e5f 100%);
    --gradient-elegant: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-professional: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Header Styling */
.builder-header {
    background: var(--gradient-brand);
    border: none;
    box-shadow: 0 4px 20px rgba(110, 193, 228, 0.3);
}

.header-content {
    backdrop-filter: blur(10px);
}

.header-left h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ATS Score Badge */
.ats-score-badge {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
    border-radius: 25px;
    padding: 10px 20px;
}

/* Button Styling */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(110, 193, 228, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 193, 228, 0.4);
}

/* Tab Styling */
.panel-tabs {
    background: linear-gradient(90deg, #f8fafc, #ffffff);
    border-bottom: 1px solid var(--brand-secondary);
}

.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-brand);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-btn:hover::before {
    width: 80%;
}

.tab-btn.active {
    color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.1), rgba(110, 193, 228, 0.1));
}

.tab-btn.active::before {
    width: 100%;
}

/* Form Sections */
.form-section {
    background: white;
    border: 1px solid rgba(110, 193, 228, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 6px 25px rgba(110, 193, 228, 0.15);
    transform: translateY(-2px);
}

.section-header {
    background: linear-gradient(135deg, rgba(110, 193, 228, 0.1), rgba(255, 126, 95, 0.05));
    border-bottom: 1px solid rgba(110, 193, 228, 0.2);
}

.section-header h3 i {
    color: var(--brand-primary);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="month"],
select,
textarea {
    border: 2px solid rgba(110, 193, 228, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.1);
}

/* AI Features */
.btn-ai {
    background: var(--gradient-elegant);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Template Cards */
.template-card {
    border: 2px solid rgba(110, 193, 228, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.template-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.2);
}

.template-card.active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.1);
}

.feature-tag {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Preview Panel */
.preview-panel {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.preview-header {
    background: white;
    border-bottom: 1px solid rgba(110, 193, 228, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-preview-toggle {
    border: 2px solid rgba(110, 193, 228, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-preview-toggle:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 126, 95, 0.1);
}

.btn-preview-toggle.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Resume Document */
.resume-document {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Color Presets */
.color-preset {
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-preset:hover {
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-preset.active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(255, 126, 95, 0.3);
}

/* Modal Styling */
.modal {
    backdrop-filter: blur(10px);
}

.modal-content {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(110, 193, 228, 0.2);
}

.modal-header {
    background: var(--gradient-brand);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Skill Tags */
.skill-tag,
.language-tag,
.hobby-tag {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(110, 193, 228, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover,
.language-tag:hover,
.hobby-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 193, 228, 0.4);
}

/* Export Menu */
.export-menu {
    background: white;
    border: 1px solid rgba(110, 193, 228, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.export-menu button:hover {
    background: linear-gradient(135deg, rgba(110, 193, 228, 0.1), rgba(255, 126, 95, 0.05));
    color: var(--brand-primary);
}

/* Notifications */
.notification {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.notification-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.notification-error {
    background: linear-gradient(135deg, var(--error-color), #c0392b);
}

.notification-warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
}

/* Loading Overlay */
.loading-overlay {
    background: linear-gradient(135deg, rgba(110, 193, 228, 0.9), rgba(255, 126, 95, 0.9));
    backdrop-filter: blur(15px);
}

.loading-spinner {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-brand);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .builder-header {
        background: var(--gradient-brand);
    }
    
    .form-section {
        border-radius: 8px;
        margin-bottom: 16px;
    }
    
    .template-card {
        border-radius: 8px;
    }
}

/* Animation Keyframes */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Elegant Hover Effects */
.elegant-hover {
    position: relative;
    overflow: hidden;
}

.elegant-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.elegant-hover:hover::before {
    left: 100%;
}

/* Professional Shadows */
.professional-shadow {
    box-shadow: 
        0 2px 4px rgba(110, 193, 228, 0.1),
        0 8px 16px rgba(255, 126, 95, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.05);
}

.professional-shadow:hover {
    box-shadow: 
        0 4px 8px rgba(110, 193, 228, 0.15),
        0 12px 24px rgba(255, 126, 95, 0.15),
        0 24px 48px rgba(0, 0, 0, 0.1);
}