/* Custom CSS for MojŽivljenjepis.si */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom Bootstrap overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

/* Enhanced button contrast */
.btn-warning {
    background-color: #e2ae00 !important;
    border-color: #e2ae00 !important;
    color: #000 !important;
}

.btn-warning:hover {
    background-color: #cc9c00 !important;
    border-color: #cc9c00 !important;
    color: #000 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-uspeh {
    background-color: var(--success-color) !important;
}

/* Gradient backgrounds */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.text-uspeh {
    color: var(--success-color) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Freemium/Locked Feature Styles */
.locked-feature {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.locked-msg {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.locked-section {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.upgrade-btn {
    margin-top: 0.5rem;
    background-color: #ffd100;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Blurred preview styles */
.blurred-preview {
    filter: blur(2px);
    pointer-events: none;
    position: relative;
}

.blurred-preview::after {
    content: "🔒 PRO funkcija";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 209, 0, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    z-index: 10;
}

/* Pro badge styling */
.pro-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Key Features Styling */
.feature-highlight {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem 1rem;
    border-radius: 15px;
    background: #fff;
    border: 2px solid transparent;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--success-color);
}

/* Enhanced spacing and typography */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.lh-lg {
    line-height: 1.8 !important;
}

.lh-base {
    line-height: 1.6 !important;
}

/* Gradient backgrounds */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Enhanced feature cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Testimonial enhancements */
.testimonial-card {
    border: 1px solid rgba(44, 62, 80, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(44, 62, 80, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.avatar-circle {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
}

/* Badge improvements */
.small-badge .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Visual separators */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(44, 62, 80, 0.2) 50%, transparent 100%);
    margin: 3rem 0;
}

/* Pricing page enhancements */
.comparison-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.comparison-table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.pricing-psychology {
    font-size: 0.85rem;
}

/* Mobile optimization for pricing cards */
@media (max-width: 768px) {
    .pricing-cards {
        padding: 0 10px;
    }
    
    .pricing-cards .card {
        margin-bottom: 2rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* Preview feature styling */
.preview-features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed var(--primary-color);
}

.preview-blur {
    filter: blur(2px);
    opacity: 0.7;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Testimonial Styling */
.testimonial-section {
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
}

.blockquote {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}
}

/* Icon Circles */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Section Headers */
.section h4 {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Resume Content Styles */
.resume-content {
    background-color: #fff;
    padding: 2rem;
    font-family: 'Georgia', serif;
    line-height: 1.8;
}

.resume-content h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.resume-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.resume-content h3 {
    color: var(--dark-gray);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resume-content ul {
    margin-left: 1.5rem;
}

.resume-content li {
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Shadows */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Testimonials */
.blockquote {
    font-style: italic;
    position: relative;
}

.blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    left: -20px;
    top: -10px;
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Live Preview Resume Styles */
.resume-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 400px;
}

.resume-classic .header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.resume-classic .section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}

.resume-modern .header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.resume-modern .header h1 {
    font-size: 1.8rem;
}

/* Job template buttons */
.job-template {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-template:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Mobile-first improvements */
.large-input {
    min-height: 56px;
    font-size: 16px; /* Prevents zoom on iOS */
}

.large-button {
    min-height: 48px;
    font-size: 16px;
    touch-action: manipulation;
}

/* Large download button for mobile */
.download-btn-large {
    min-height: 60px;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .resume-content {
        padding: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Mobile sticky form improvements */
    .sticky-top {
        position: relative !important;
    }
    
    /* Larger touch targets on mobile */
    .form-control, .form-select {
        min-height: 48px;
        font-size: 16px;
    }
    
    .btn {
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Better spacing on mobile */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Live preview adjustments */
    .resume-preview {
        padding: 1rem;
        margin-top: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .alert,
    footer {
        display: none !important;
    }
    
    .resume-content {
        box-shadow: none;
        border: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

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

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

/* Animation for form sections */
.section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Success states */
.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

/* Toast styling */
.toast {
    background-color: white;
    border: 1px solid var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

/* Badge styles */
.badge {
    font-size: 0.7em;
    padding: 0.3em 0.6em;
}

/* Service option cards */
.service-option {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.service-option .form-check-input:checked ~ .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.service-option:has(.form-check-input:checked) {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

/* Enhanced UX - Prominent CTA Buttons */
.cta-button {
    background: white !important;
    color: var(--primary-color) !important;
    border: 3px solid white !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25) !important;
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
}

.cta-button.big {
    font-size: 1.4rem !important;
    padding: 1.2rem 3rem !important;
}

/* Trust/Social Proof Section */
.trust-section {
    border-bottom: 3px solid #e9ecef;
    background: linear-gradient(45deg, #f8f9fa 0%, #ffffff 100%) !important;
}

.trust-section .fw-bold {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Subheadline styling */
.subheadline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

/* Step numbers for How it Works */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
    }
    
    .trust-section {
        padding: 1.5rem 0 !important;
    }
    
    .trust-section .col-md-4,
    .trust-section .col-md-5 {
        margin-bottom: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem !important; /* More space after headline */
    }
    
    .subheadline {
        font-size: 0.9rem;
        margin-bottom: 2rem !important; /* More space before CTA */
    }
    
    /* Tighter spacing between buttons */
    .hero-section .d-flex {
        gap: 8px !important; /* Reduce gap from default */
    }
    
    .btn-outline-light {
        padding: 0.5rem 1rem !important; /* Smaller secondary button */
    }
    
    /* Larger touch targets */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Better section padding on mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Premium CV Preview Styling */
.premium-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cv-preview-grid .mini-cv-preview {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cv-preview-grid .mini-cv-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cv-preview-grid .cv-header {
    border-radius: 0;
    margin: 0;
}

.cv-preview-grid .cv-content {
    background: white;
    height: calc(100% - 50px);
    overflow: hidden;
}

.cv-preview-grid .avatar {
    background: rgba(255,255,255,0.2) !important;
}

.premium-preview {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.price-display {
    border: 2px solid #27ae60;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Footer enhancement */
footer {
    margin-top: 2rem;
}

/* Visual contrast improvements - Lighter gradient */
.bg-primary {
    background: linear-gradient(145deg, #2b3b52 0%, #2c3e50 45%, #34495e 100%) !important;
}

.features .text-center h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Clean sans-serif font for buttons and headers */
.cta-button,
.btn,
h1, h2, h3, h4, h5 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Rounded buttons */
.btn {
    border-radius: 8px !important;
}

.btn-lg {
    border-radius: 12px !important;
}

/* Section padding improvements */
section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

@media (max-width: 768px) {
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
