/* ==============================================
   WORD TIER STYLES - Systém úrovní slov
   Súbor: static/css/word-tier-styles.css
   ============================================== */

/* ==============================================
   VYČISTENÉ ZÁKLADNÉ ŠTÝLY PRE SEARCH RESULTS
   ============================================== */
.search-result-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.search-result-header {
    padding: 25px 40px;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.search-result-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.search-result-word {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}



.search-result-word::before,
.search-result-word::after {
    margin: 0 15px;
    transform: translateY(-2px);
}





.search-result-subtitle {
    font-size: 18px;
    opacity: 0.8;
    font-weight: 500;
    margin-top: 15px;
    padding-top: 10px;
}

.search-result-content {
    padding: 40px;
    background: white;
    position: relative;
    border-radius: 0 0 20px 20px;
}

.search-result-info {
    text-align: center;
    margin-bottom: 30px;
}

.search-result-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.search-result-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.result-detail-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.result-detail-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-detail-value {
    font-size: 18px;
    font-weight: bold;
}

.search-result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.golden-button {
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.golden-button:hover {
    transform: translateY(-3px);
    color: white;
}

.golden-button i {
    font-size: 18px;
}

.guide-preview-golden {
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.guide-preview-golden h4 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.guide-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 0 auto;
    display: block;
}

.opportunity-highlight {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.opportunity-highlight h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.opportunity-highlight p {
    color: #155724;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.owner-highlight {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.owner-highlight:hover {
    color: #0d47a1;
    text-shadow: 0 0 8px rgba(26, 115, 232, 0.3);
}

/* ==============================================
   ÚROVEŇ 1: BRONZOVÁ (0-299 kreditov)
   ============================================== */
.search-result-container.tier-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    box-shadow: 0 15px 30px rgba(205, 127, 50, 0.25);
}

.search-result-container.tier-bronze .search-result-header {
    background: linear-gradient(135deg, #F5F5DC 0%, #FAEBD7 100%);
    border-bottom: 3px solid #CD7F32;
}

.search-result-container.tier-bronze .search-result-header::after {
    border-top: 10px solid #CD7F32;
}

.search-result-container.tier-bronze .search-result-word {
    color: #8B4513;
}

.search-result-container.tier-bronze .search-result-word::before,
.search-result-container.tier-bronze .search-result-word::after {
    content: '🥉';
    font-size: 20px;
    animation: gentlePulse 3s ease-in-out infinite;
}

.search-result-container.tier-bronze .result-detail-item {
    background: linear-gradient(135deg, #F5DEB3 0%, #DEB887 100%);
    border: 2px solid #CD7F32;
}

.search-result-container.tier-bronze .guide-preview-golden {
    background: linear-gradient(135deg, #FAF0E6 0%, #F5DEB3 100%);
    border: 3px solid #CD7F32;
}

.search-result-container.tier-bronze .search-result-info h3 {
    color: #8B4513;
}

/* ==============================================
   ÚROVEŇ 2: STRIEBORNÁ (300-999 kreditov)
   ============================================== */
.search-result-container.tier-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    box-shadow: 0 18px 35px rgba(192, 192, 192, 0.35);
}

.search-result-container.tier-silver .search-result-header {
    background: linear-gradient(135deg, #F8F8FF 0%, #E6E6FA 100%);
    border-bottom: 3px solid #C0C0C0;
}

.search-result-container.tier-silver .search-result-header::after {
    border-top: 10px solid #C0C0C0;
}

.search-result-container.tier-silver .search-result-word {
    color: #696969;
}

.search-result-container.tier-silver .search-result-word::before,
.search-result-container.tier-silver .search-result-word::after {
    content: '🥈';
    font-size: 22px;
    animation: silverShimmer 2.5s ease-in-out infinite alternate;
}

.search-result-container.tier-silver .result-detail-item {
    background: linear-gradient(135deg, #F0F8FF 0%, #E0E6F8 100%);
    border: 2px solid #C0C0C0;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.search-result-container.tier-silver .guide-preview-golden {
    background: linear-gradient(135deg, #F8F8FF 0%, #F0F8FF 100%);
    border: 3px solid #C0C0C0;
}

.search-result-container.tier-silver .search-result-info h3 {
    color: #696969;
}

/* ==============================================
   ÚROVEŇ 3: ZLATÁ (1000-3999 kreditov)
   ============================================== */
.search-result-container.tier-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
}

.search-result-container.tier-gold .search-result-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-bottom: 3px solid #FFD700;
}

.search-result-container.tier-gold .search-result-header::after {
    border-top: 10px solid #FFD700;
}

.search-result-container.tier-gold .search-result-word {
    color: #B8860B;
}

.search-result-container.tier-gold .search-result-word::before,
.search-result-container.tier-gold .search-result-word::after {
    content: '🥇';
    font-size: 24px;
    animation: goldSparkle 2s ease-in-out infinite alternate;
}

.search-result-container.tier-gold .result-detail-item {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.search-result-container.tier-gold .guide-preview-golden {
    background: linear-gradient(135deg, #FFFEF7 0%, #FFF8DC 100%);
    border: 3px solid #FFD700;
}

.search-result-container.tier-gold .search-result-info h3 {
    color: #B8860B;
}

/* ==============================================
   ÚROVEŇ 4: DIAMANTOVÁ (4000+ kreditov)
   ============================================== */
.search-result-container.tier-diamond {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 50%, #A5B4FC 100%);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.search-result-container.tier-diamond::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: diamondShine 3s linear infinite;
    pointer-events: none;
}

.search-result-container.tier-diamond .search-result-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #E2E8F0 100%);
    border-bottom: 3px solid #8B5CF6;
    position: relative;
}

.search-result-container.tier-diamond .search-result-header::after {
    border-top: 10px solid #8B5CF6;
}

.search-result-container.tier-diamond .search-result-word {
    color: #5B21B6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.search-result-container.tier-diamond .search-result-word::before,
.search-result-container.tier-diamond .search-result-word::after {
    content: '💎';
    font-size: 26px;
    animation: diamondPulse 1.5s ease-in-out infinite alternate;
}

.search-result-container.tier-diamond .result-detail-item {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 50%, #D1D5DB 100%);
    border: 2px solid #8B5CF6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
    position: relative;
}

.search-result-container.tier-diamond .result-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    border-radius: 13px;
    pointer-events: none;
}

.search-result-container.tier-diamond .guide-preview-golden {
    background: linear-gradient(135deg, #FAFAFF 0%, #F3F4F6 100%);
    border: 3px solid #8B5CF6;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.search-result-container.tier-diamond .search-result-info h3 {
    color: #5B21B6;
}

/* ==============================================
   ANIMÁCIE PRE KAŽDÚ ÚROVEŇ
   ============================================== */

@keyframes gentlePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

@keyframes silverShimmer {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.9; filter: brightness(1); }
    100% { transform: scale(1.15) rotate(8deg); opacity: 1; filter: brightness(1.2); }
}

@keyframes goldSparkle {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    100% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

@keyframes diamondPulse {
    0% { transform: scale(1) rotate(-5deg); opacity: 0.9; filter: brightness(1) drop-shadow(0 0 5px rgba(139, 92, 246, 0.3)); }
    100% { transform: scale(1.3) rotate(10deg); opacity: 1; filter: brightness(1.3) drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)); }
}

@keyframes diamondShine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* ==============================================
   TLAČIDLÁ PRE KAŽDÚ ÚROVEŇ
   ============================================== */

.tier-bronze .golden-button {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    box-shadow: 0 6px 15px rgba(205, 127, 50, 0.3);
}

.tier-bronze .golden-button:hover {
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.5);
}

.tier-silver .golden-button {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    box-shadow: 0 8px 18px rgba(192, 192, 192, 0.4);
}

.tier-silver .golden-button:hover {
    box-shadow: 0 10px 25px rgba(192, 192, 192, 0.6);
}

.tier-gold .golden-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.tier-gold .golden-button:hover {
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.6);
}

.tier-diamond .golden-button {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.tier-diamond .golden-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: buttonShine 2s linear infinite;
}

.tier-diamond .golden-button:hover {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
    transform: translateY(-3px) scale(1.02);
}

@keyframes buttonShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==============================================
   DODATOČNÉ ŠTÝLY PRE ÚROVNE SLOV
   ============================================== */

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tier-bronze .tier-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-silver .tier-badge {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-gold .tier-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-diamond .tier-badge {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-description {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-style: italic;
}

.tier-bronze .tier-description {
    background: linear-gradient(135deg, #F5DEB3 0%, #DEB887 100%);
    color: #8B4513;
    border: 1px solid #CD7F32;
}

.tier-silver .tier-description {
    background: linear-gradient(135deg, #F0F8FF 0%, #E0E6F8 100%);
    color: #696969;
    border: 1px solid #C0C0C0;
}

.tier-gold .tier-description {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
    color: #B8860B;
    border: 1px solid #FFD700;
}

.tier-diamond .tier-description {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    color: #5B21B6;
    border: 1px solid #8B5CF6;
}

.result-detail-value.price-highlight {
    font-size: 20px;
    font-weight: bold;
}

.tier-bronze .result-detail-value.price-highlight {
    color: #8B4513;
    text-shadow: 0 1px 3px rgba(139, 69, 19, 0.3);
}

.tier-silver .result-detail-value.price-highlight {
    color: #696969;
    text-shadow: 0 1px 3px rgba(105, 105, 105, 0.3);
}

.tier-gold .result-detail-value.price-highlight {
    color: #B8860B;
    text-shadow: 0 1px 3px rgba(184, 134, 11, 0.3);
}

.tier-diamond .result-detail-value.price-highlight {
    color: #5B21B6;
    text-shadow: 0 1px 3px rgba(91, 33, 182, 0.3);
}

.tier-diamond .search-result-header {
    animation: diamondGlow 4s ease-in-out infinite;
}

@keyframes diamondGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
}

.tier-bronze .result-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.3);
}

.tier-silver .result-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.4);
}

.tier-gold .result-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.tier-diamond .result-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

/* ==============================================
   RESPONZÍVNE ŠTÝLY
   ============================================== */
@media (max-width: 768px) {
    .search-result-container {
        margin: 20px 10px;
    }
    
    .search-result-header {
        padding: 20px 25px;
    }
    
    .search-result-word {
        font-size: 28px;
    }
    
    .search-result-content {
        padding: 25px 20px;
    }
    
    .search-result-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .golden-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .search-result-container.tier-diamond .search-result-word::before,
    .search-result-container.tier-diamond .search-result-word::after {
        font-size: 22px;
    }
    
    .search-result-container.tier-gold .search-result-word::before,
    .search-result-container.tier-gold .search-result-word::after {
        font-size: 20px;
    }
    
    .search-result-container.tier-silver .search-result-word::before,
    .search-result-container.tier-silver .search-result-word::after {
        font-size: 18px;
    }
    
    .search-result-container.tier-bronze .search-result-word::before,
    .search-result-container.tier-bronze .search-result-word::after {
        font-size: 16px;
    }

    .tier-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .tier-description {
        padding: 10px;
        font-size: 14px;
    }
}