/**
 * Single Perfumer CSS - стилове за отделни страници на парфюмеристи
 * assets/css/single-perfumer.css
 * РАЗШИРЕНА ВЕРСИЯ С НОВИ СТИЛОВЕ
 */

/* ========================================
   ОСНОВНИ СТИЛОВЕ
   ======================================== */

/* Основните стилове за perfumer страници */
.perfumer-single-archive .container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    padding: 15px 0;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 12px;
    color: #999;
    font-weight: 300;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* ========================================
   PERFUMER HEADER - НОВИ СТИЛОВЕ
   ======================================== */

.perfumer-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

/* Декоративен елемент в header */
.perfumer-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.perfumer-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.perfumer-image {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.perfumer-image img,
.perfumer-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.perfumer-image img:hover,
.perfumer-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.perfumer-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.perfumer-name {
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.perfumer-birth-info {
    font-size: 1.2em;
    margin: 0 0 25px 0;
    opacity: 0.9;
    font-weight: 500;
}

.perfumer-stats {
    display: flex;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   PERFUMER LINKS - НОВИ СТИЛОВЕ
   ======================================== */

.perfumer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.perfumer-website,
.perfumer-social {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.perfumer-website:hover,
.perfumer-social:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.perfumer-website .dashicons,
.perfumer-social .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ========================================
   PERFUMER CONTENT SECTIONS - БЕЗ ТАБОВЕ
   ======================================== */

.perfumer-content {
    padding: 0;
    background: white;
}

.perfumer-content > div {
    padding: 40px;
    border-bottom: 1px solid #e9ecef;
}

.perfumer-content > div:last-child {
    border-bottom: none;
}

.perfumer-content h2 {
    font-size: 2.5em;
    margin: 0 0 30px 0;
    color: #333;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.perfumer-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ========================================
   BIOGRAPHY SECTION - НОВИ СТИЛОВЕ
   ======================================== */

.biography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.bio-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.bio-section:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bio-section h3 {
    font-size: 1.4em;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-section .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bio-section p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1.05em;
}

/* ========================================
   PERFUMES SECTION - НОВИ СТИЛОВЕ
   ======================================== */

.perfumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.perfume-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.perfume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.perfume-card:hover {
    background: #f8f9fa;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.perfume-card:hover::before {
    transform: scaleX(1);
}

.perfume-card h4 {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 700;
}

.perfume-card h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.perfume-card h4 a:hover {
    color: #667eea;
}

.perfume-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

.meta-label {
    color: #666;
    font-weight: 500;
    min-width: 100px;
}

.meta-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.perfume-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
}

/* ========================================
   COLLABORATIONS SECTION - НОВИ СТИЛОВЕ
   ======================================== */

.perfumers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.perfumer-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.perfumer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #764ba2, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.perfumer-card:hover {
    background: #f8f9fa;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.perfumer-card:hover::before {
    transform: scaleX(1);
}

.perfumer-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.perfumer-card:hover .perfumer-card-avatar {
    border-color: #667eea;
    transform: scale(1.1);
}

.perfumer-card-name {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

.perfumer-card-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.perfumer-card-name a:hover {
    color: #667eea;
}

.perfumer-card-info {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ========================================
   FAMOUS FRAGRANCES SECTION - НОВИ СТИЛОВЕ
   ======================================== */

.famous-fragrances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.famous-fragrance-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.famous-fragrance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.famous-fragrance-item:hover {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.famous-fragrance-item:hover::before {
    transform: scaleX(1);
}

.fragrance-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.fragrance-name {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.fragrance-year {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 12px 0;
}

.fragrance-description {
    color: #666;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   AWARDS SECTION - НОВИ СТИЛОВЕ
   ======================================== */

.awards-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.award-item {
    background: linear-gradient(135deg, #fff8dc, #ffeaa7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f39c12, #e67e22);
}

.award-item:hover {
    background: linear-gradient(135deg, #fff8dc, #ffeaa7);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

.award-item .dashicons {
    color: #f39c12;
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.award-name {
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
    line-height: 1.4;
}

/* ========================================
   NO CONTENT STATES - НОВИ СТИЛОВЕ
   ======================================== */

.no-perfumes,
.no-perfumers {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    margin: 30px 0;
}

.no-perfumes::before,
.no-perfumers::before {
    content: '🔍';
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========================================
   ARCHIVE STYLES - ПАРФЮМЕРИСТИ АРХИВ
   ======================================== */

.perfumers-archive-page .container {
    padding: 40px;
}

/* Archive header styles are now handled in individual template files */

.perfumers-grid {
    margin-top: 50px;
}

/* ========================================
   ARCHIVE LAYOUT STYLES - ДОПЪЛНИТЕЛНИ СТИЛОВЕ
   ======================================== */

.archive-layout {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.archive-sidebar {
    flex: 0 0 250px;
}

.archive-main {
    flex: 1;
}

.parfume-thumbnail {
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.parfume-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #666;
    font-size: 1.2em;
}

.perfumer-tag {
    display: inline-block;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 3px;
    border: 1px solid #c8e6c9;
}

.rating-stars {
    color: #ffc107;
    display: inline-block;
    margin-right: 5px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 768px) {
    .perfumer-single-archive .container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .perfumer-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .perfumer-name {
        font-size: 2.2em;
    }
    
    .perfumer-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .perfumer-content > div {
        padding: 25px 20px;
    }
    
    .perfumer-content h2 {
        font-size: 2em;
    }
    
    .biography-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .perfumes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .perfumers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Archive responsive styles */
    .archive-layout {
        flex-direction: column;
        gap: 10px;
    }
    
    .archive-sidebar {
        flex: none;
    }
}

@media (max-width: 480px) {
    .perfumer-image img,
    .perfumer-avatar {
        width: 120px;
        height: 120px;
    }
    
    .perfumer-name {
        font-size: 1.8em;
    }
    
    .perfumer-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        margin: 0 auto;
        max-width: 200px;
    }
    
    .perfumes-grid {
        grid-template-columns: 1fr;
    }
    
    .perfumers-grid {
        grid-template-columns: 1fr;
    }
    
    .meta-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .meta-label {
        min-width: auto;
        font-weight: 700;
    }
    
    .perfumer-links {
        justify-content: center;
    }
}

/* ========================================
   LOADING ANIMATIONS - АНИМАЦИИ ЗА ЗАРЕЖДАНЕ
   ======================================== */

.perfumer-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

.perfumer-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PRINT STYLES - СТИЛОВЕ ЗА ПЕЧАТ
   ======================================== */

@media print {
    .single-perfumer-page {
        background: white;
        box-shadow: none;
        max-width: none;
    }
    
    .perfumer-header {
        background: #f8f9fa !important;
        color: #333 !important;
        box-shadow: none;
    }
    
    .perfumer-tabs,
    .perfumer-links {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .perfume-card {
        break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS - ПОДОБРЕНИЯ ЗА ДОСТЪПНОСТ
   ======================================== */

.tab-link:focus,
.perfumer-website:focus,
.perfumer-social:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.perfume-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .perfumer-header::before,
    .perfumer-header::after,
    .tab-link::before {
        animation: none;
    }
    
    .perfume-card,
    .perfumer-card,
    .bio-section,
    .famous-fragrance-item,
    .award-item {
        transition: none;
    }
}