/**
 * JUBU Ratings - GDPR Banner Styles
 * 
 * Art Deco themed GDPR cookie consent banner
 * 
 * @package JUBU_Ratings
 * @since 1.0.0
 */

/* ============================================
   GDPR Banner
   ============================================ */
.jubu-gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(26, 26, 26, 0.98));
    backdrop-filter: blur(10px);
    border-top: 3px solid #d4af37;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.jubu-gdpr-banner.visible {
    transform: translateY(0);
}

.jubu-gdpr-banner.accepted {
    background: linear-gradient(135deg, rgba(30, 50, 30, 0.98), rgba(20, 40, 20, 0.98));
}

.jubu-gdpr-banner.rejected {
    background: linear-gradient(135deg, rgba(40, 20, 20, 0.98), rgba(30, 10, 10, 0.98));
}

.jubu-gdpr-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* Art Deco corners */
.jubu-gdpr-container::before,
.jubu-gdpr-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.jubu-gdpr-container::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.jubu-gdpr-container::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* ============================================
   Content
   ============================================ */
.jubu-gdpr-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.jubu-gdpr-icon {
    font-size: 2.5rem;
    line-height: 1;
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.jubu-gdpr-text {
    flex: 1;
}

.jubu-gdpr-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin: 0 0 10px 0;
    letter-spacing: 0.05em;
}

.jubu-gdpr-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.jubu-gdpr-details-toggle {
    background: none;
    border: none;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: opacity 0.3s ease;
}

.jubu-gdpr-details-toggle:hover {
    opacity: 0.7;
}

.jubu-gdpr-details {
    margin-top: 20px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.jubu-gdpr-details strong {
    color: #d4af37;
    display: block;
    margin-bottom: 8px;
}

.jubu-gdpr-details ul {
    margin: 10px 0 20px 20px;
    padding: 0;
}

.jubu-gdpr-details li {
    margin-bottom: 5px;
}

.jubu-gdpr-legal {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.jubu-gdpr-legal a {
    color: #d4af37;
    text-decoration: underline;
}

.jubu-gdpr-legal a:hover {
    color: #f4d03f;
}

/* ============================================
   Actions
   ============================================ */
.jubu-gdpr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.jubu-gdpr-btn {
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(
        10px 0, 
        100% 0, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        0 100%, 
        0 10px
    );
    white-space: nowrap;
}

.jubu-gdpr-accept {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-color: #d4af37;
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.jubu-gdpr-accept:hover {
    background: linear-gradient(135deg, #f4d03f, #d4af37);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.jubu-gdpr-accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.jubu-gdpr-reject {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.jubu-gdpr-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Close Button
   ============================================ */
.jubu-gdpr-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 18px;
    cursor: pointer;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.jubu-gdpr-close:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(45deg);
}

/* ============================================
   Consent Message (after action)
   ============================================ */
.jubu-consent-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jubu-consent-message.visible {
    opacity: 1;
    transform: translateX(0);
}

.jubu-consent-message-inner {
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(10, 10, 10, 0.98));
    border: 2px solid #d4af37;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #d4af37;
    clip-path: polygon(
        15px 0, 
        100% 0, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        0 100%, 
        0 15px
    );
}

.jubu-consent-accepted .jubu-consent-message-inner {
    border-color: #4caf50;
    color: #4caf50;
}

.jubu-consent-rejected .jubu-consent-message-inner {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   No Consent State (disable rating widgets)
   ============================================ */
.jubu-rating-widget.no-consent {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.jubu-rating-widget.no-consent::after {
    content: 'Please accept cookies to rate';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    padding: 10px 20px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #d4af37;
    white-space: nowrap;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
    .jubu-gdpr-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jubu-gdpr-content {
        flex-direction: column;
    }
    
    .jubu-gdpr-actions {
        flex-direction: row;
    }
    
    .jubu-gdpr-btn {
        flex: 1;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .jubu-gdpr-container {
        padding: 20px 15px;
    }
    
    .jubu-gdpr-icon {
        font-size: 2rem;
    }
    
    .jubu-gdpr-title {
        font-size: 1.3rem;
    }
    
    .jubu-gdpr-description {
        font-size: 0.85rem;
    }
    
    .jubu-gdpr-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .jubu-gdpr-actions {
        flex-direction: column;
    }
    
    .jubu-gdpr-btn {
        font-size: 0.8rem;
        padding: 12px 15px;
    }
    
    .jubu-consent-message {
        top: 10px;
        right: 10px;
        left: 10px;
    }
}
