/* Modern CV Template - Popular Slovenian Style */
.modern-cv-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 1000px;
    position: relative;
    overflow: hidden;
}

/* Header Section with Photo */
.modern-cv-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 30px;
    position: relative;
    min-height: 200px;
}

.modern-cv-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.modern-cv-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    position: absolute;
    left: 30px;
    top: 30px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #95a5a6;
}

.modern-cv-name {
    margin-left: 160px;
    padding-top: 20px;
}

.modern-cv-name h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.modern-cv-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
}

/* Main Content Layout */
.modern-cv-content {
    display: flex;
    min-height: 800px;
}

/* Left Sidebar */
.modern-cv-sidebar {
    width: 300px;
    background: #34495e;
    color: white;
    padding: 30px 25px;
}

.modern-cv-sidebar .section {
    margin-bottom: 30px;
}

.modern-cv-sidebar .section-title {
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    margin: 0 -25px 15px -25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-cv-sidebar .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.modern-cv-sidebar .contact-item i {
    width: 20px;
    margin-right: 10px;
    color: #3498db;
}

.modern-cv-sidebar .skill-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modern-cv-sidebar .education-item {
    margin-bottom: 15px;
}

.modern-cv-sidebar .education-school {
    font-weight: 600;
    margin-bottom: 3px;
}

.modern-cv-sidebar .education-period {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Right Content Area */
.modern-cv-main {
    flex: 1;
    padding: 30px;
    background: white;
}

.modern-cv-main .section {
    margin-bottom: 30px;
}

.modern-cv-main .section-title {
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    margin: 0 -30px 20px -30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-cv-main .experience-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.modern-cv-main .experience-item:last-child {
    border-bottom: none;
}

.modern-cv-main .experience-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.modern-cv-main .experience-company {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.modern-cv-main .experience-period {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 10px;
}

.modern-cv-main .experience-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
}

.modern-cv-main .training-item {
    margin-bottom: 15px;
}

.modern-cv-main .training-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.modern-cv-main .training-date {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Personal Statement */
.modern-cv-statement {
    background: #ecf0f1;
    padding: 20px;
    margin: -30px -30px 30px -30px;
    font-style: italic;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Color Themes */
.modern-cv-theme-blue .modern-cv-header {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.modern-cv-theme-blue .modern-cv-sidebar {
    background: #3498db;
}

.modern-cv-theme-blue .modern-cv-sidebar .section-title,
.modern-cv-theme-blue .modern-cv-main .section-title {
    background: #2980b9;
}

.modern-cv-theme-green .modern-cv-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.modern-cv-theme-green .modern-cv-sidebar {
    background: #2ecc71;
}

.modern-cv-theme-green .modern-cv-sidebar .section-title,
.modern-cv-theme-green .modern-cv-main .section-title {
    background: #27ae60;
}

.modern-cv-theme-purple .modern-cv-header {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.modern-cv-theme-purple .modern-cv-sidebar {
    background: #9b59b6;
}

.modern-cv-theme-purple .modern-cv-sidebar .section-title,
.modern-cv-theme-purple .modern-cv-main .section-title {
    background: #8e44ad;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-cv-content {
        flex-direction: column;
    }
    
    .modern-cv-sidebar {
        width: 100%;
    }
    
    .modern-cv-name {
        margin-left: 0;
        text-align: center;
        padding-top: 140px;
    }
    
    .modern-cv-photo {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Print Styles */
@media print {
    .modern-cv-container {
        box-shadow: none;
        max-width: none;
    }
    
    .modern-cv-content {
        page-break-inside: avoid;
    }
}