/* Trojúhelníkový discount badge - levý dolní roh */
.triangle-badge {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.triangle-shape {
    width: 0;
    height: 0;
    border-right: 80px solid transparent;
    border-bottom: 80px solid #E0BE07;
    position: relative;
    transition: all 0.3s ease;
}

.triangle-shape:hover {
    border-bottom-color: #E0BE07;
}

.discount-text {
    position: absolute;
bottom: -69px;
    right: -36px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transform: rotate(45deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.badge-content {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    width: calc(100vw - 40px);
    z-index: 1000000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.triangle-badge.expanded .triangle-shape {
    opacity: 0;
    pointer-events: none;
}

.badge-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.badge-close:hover {
    color: #333;
}

.badge-title {
    color: #FBB5BF;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 0;
}

.badge-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.badge-info {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.badge-link {
    color: #FBB5BF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.badge-link:hover {
    color: #FA9BAA;
    text-decoration: underline;
}

.badge-button {
    display: inline-block;
    background-color: #6BB8B7;
    color: white !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;  
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(152, 231, 231, 0.3);
}

.badge-button:hover {
    box-shadow: 0 6px 20px rgba(152, 231, 231, 0.4);
    transform: translateY(-2px);
}

/* Responsivní design pro badge */
@media (max-width: 768px) {
    .triangle-shape {
        border-right: 80px solid transparent;
        border-bottom: 80px solid #E0BE07;
    }
    
    .discount-text {
            bottom: -68px;
    right: -37px;
        font-size: 18px;
    }
    
    .badge-content {
        padding: 25px;
        max-width: 300px;
    }
    
    .badge-title {
        font-size: 20px;
    }
    
    .badge-subtitle {
        font-size: 14px;
    }
    
    .badge-info {
        font-size: 14px;
    }
    
    .badge-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .triangle-shape {
        border-right: 70px solid transparent;
        border-bottom: 70px solid #E0BE07;
    }
    
    .discount-text {
        bottom: -59px;
        right: -32px;
        font-size: 16px;
    }
    
    .badge-content {
        padding: 20px;
        bottom: 10px;
        left: 10px;
        width: calc(100vw - 20px);
    }
    
    .badge-title {
        font-size: 18px;
    }
    
    .badge-subtitle {
        font-size: 13px;
    }
    
    .badge-info {
        font-size: 13px;
    }
}
