/* Canva-Style Visual CV Themes */

/* Professional Modern Theme (Like Urh's CV) */
.theme-professional-modern {
    background: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d3748;
}

.theme-professional-modern .cv-container {
    background: white;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 1000px;
}

.theme-professional-modern .cv-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 25px;
    position: relative;
}

.theme-professional-modern .cv-main {
    padding: 40px 35px;
    background: white;
}

.theme-professional-modern .profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.theme-professional-modern .profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 0 auto 20px;
    background: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
}

.theme-professional-modern .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-professional-modern .cv-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-professional-modern .cv-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 25px;
    color: #ecf0f1;
}

.theme-professional-modern .sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.theme-professional-modern .sidebar-section:last-child {
    border-bottom: none;
}

.theme-professional-modern .sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-professional-modern .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

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

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

.theme-professional-modern .main-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.theme-professional-modern .main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3498db;
}

/* Creative Designer Theme */
.theme-creative-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.theme-creative-visual .cv-container {
    background: white;
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
}

.theme-creative-visual .cv-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.theme-creative-visual .cv-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: floatPattern 20s linear infinite;
    z-index: 0;
}

.theme-creative-visual .cv-header > * {
    position: relative;
    z-index: 1;
}

.theme-creative-visual .profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid white;
    margin: 0 auto 25px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.theme-creative-visual .cv-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.theme-creative-visual .cv-title {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 300;
}

.theme-creative-visual .cv-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.theme-creative-visual .section-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.theme-creative-visual .section-card:hover {
    transform: translateY(-2px);
}

.theme-creative-visual .section-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Infographic Style Theme */
.theme-infographic-style {
    background: #f0f4f8;
    font-family: 'Roboto', sans-serif;
    color: #334155;
}

.theme-infographic-style .cv-container {
    background: white;
    margin: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.theme-infographic-style .cv-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 40px;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.theme-infographic-style .header-left {
    text-align: center;
}

.theme-infographic-style .header-center {
    text-align: center;
}

.theme-infographic-style .header-right {
    text-align: center;
}

.theme-infographic-style .profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px solid white;
    background: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
}

.theme-infographic-style .cv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.theme-infographic-style .stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.theme-infographic-style .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.theme-infographic-style .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 5px;
}

.theme-infographic-style .skills-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.theme-infographic-style .skill-item {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.theme-infographic-style .skill-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #334155;
}

.theme-infographic-style .skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.theme-infographic-style .skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    animation: skillFill 2s ease-out;
    position: relative;
}

.theme-infographic-style .skill-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* Magazine Layout Theme */
.theme-magazine-layout {
    background: #fff;
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
}

.theme-magazine-layout .cv-container {
    background: white;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.theme-magazine-layout .cv-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 40px;
    position: relative;
}

.theme-magazine-layout .cv-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hexagons" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,0 52.5,15 52.5,45 30,60 7.5,45 7.5,15" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="60" height="60" fill="url(%23hexagons)"/></svg>');
    z-index: 0;
}

.theme-magazine-layout .cv-sidebar > * {
    position: relative;
    z-index: 1;
}

.theme-magazine-layout .cv-main {
    padding: 50px 40px;
    background: #fafafa;
    position: relative;
}

.theme-magazine-layout .magazine-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 20px;
    color: #2c3e50;
}

.theme-magazine-layout .magazine-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 4px solid #3498db;
}

/* Animations */
@keyframes floatPattern {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(-5px); }
    75% { transform: translateX(-5px) translateY(10px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes skillFill {
    from { width: 0%; }
    to { width: var(--skill-width, 100%); }
}

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

/* Timeline Components */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-content h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Language indicators */
.language-grid {
    display: grid;
    gap: 15px;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.language-name {
    font-weight: 500;
}

.language-level {
    color: #3498db;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.language-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-professional-modern .cv-container,
    .theme-magazine-layout .cv-container {
        grid-template-columns: 1fr;
    }
    
    .theme-creative-visual .cv-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .theme-infographic-style .cv-header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .theme-magazine-layout .magazine-title {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .theme-creative-visual .cv-container,
    .theme-infographic-style .cv-container {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .theme-professional-modern .cv-sidebar,
    .theme-magazine-layout .cv-sidebar {
        background: #2c3e50 !important;
        color: white !important;
    }
    
    .theme-creative-visual .cv-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
}