/**
 * Cookie Banner Styles
 * 
 * @package Galyam_Legal_Cookies
 * @version 1.7.0
 */

.glc-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.glc-cookie-bottom {
    bottom: 0;
}

.glc-cookie-top {
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.glc-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.glc-cookie-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    display: block;
    width: 100%;
    color: inherit;
}

.glc-cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}

.glc-cookie-text a,
.glc-cookie-link {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
}

.glc-cookie-text a:hover,
.glc-cookie-link:hover {
    opacity: 1;
}

.glc-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.glc-cookie-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.glc-cookie-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.glc-cookie-reject {
    background: transparent !important;
}

.glc-cookie-reject:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* Animation */
.glc-cookie-banner {
    animation: glcSlideIn 0.4s ease-out;
}

.glc-cookie-bottom {
    animation-name: glcSlideInBottom;
}

.glc-cookie-top {
    animation-name: glcSlideInTop;
}

@keyframes glcSlideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glcSlideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.glc-cookie-banner.glc-hiding {
    animation: glcSlideOut 0.3s ease-in forwards;
}

.glc-cookie-bottom.glc-hiding {
    animation-name: glcSlideOutBottom;
}

.glc-cookie-top.glc-hiding {
    animation-name: glcSlideOutTop;
}

@keyframes glcSlideOutBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes glcSlideOutTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glc-cookie-banner {
        padding: 15px;
    }
    
    .glc-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .glc-cookie-title {
        text-align: center;
    }
    
    .glc-cookie-text {
        min-width: 100%;
    }
    
    .glc-cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .glc-cookie-btn {
        flex: 1;
        padding: 10px 16px;
    }
    
    .glc-cookie-credit {
        flex-direction: column;
        gap: 4px;
    }
}

/* Legal Page Styles */
.galyam-legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
    direction: rtl;
}

.galyam-legal-page h2 {
    color: #1a1a2e;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90d9;
}

.galyam-legal-page h3 {
    color: #4a90d9;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.galyam-legal-page p {
    margin-bottom: 15px;
    color: #333;
}

.galyam-legal-page ul {
    margin: 15px 0;
    padding-right: 25px;
}

.galyam-legal-page li {
    margin-bottom: 8px;
}

.galyam-legal-page a {
    color: #4a90d9;
    text-decoration: none;
}

.galyam-legal-page a:hover {
    text-decoration: underline;
}

.galyam-legal-page em {
    color: #666;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glc-cookie-banner {
        border: 2px solid currentColor;
    }
    
    .glc-cookie-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .glc-cookie-banner,
    .glc-cookie-banner.glc-hiding {
        animation: none;
    }
}

/* Print */
@media print {
    .glc-cookie-banner {
        display: none !important;
    }
}

/* GalyamStudio Watermark */
.glc-watermark {
    margin-top: 30px !important;
    padding-top: 15px !important;
    border-top: 1px solid #e0e0e0 !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #888 !important;
    direction: rtl !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.glc-watermark a {
    color: #4a90d9 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.glc-watermark a:hover {
    text-decoration: underline !important;
}

.glc-watermark svg {
    vertical-align: middle;
}

.glc-cookie-watermark {
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0.7 !important;
}

.glc-cookie-watermark a {
    color: inherit !important;
    text-decoration: none !important;
}

.glc-cookie-watermark a:hover {
    opacity: 1 !important;
}

/* Cookie Credit Link */
.glc-cookie-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.glc-cookie-credit:hover {
    opacity: 1;
}

.glc-credit-text {
    font-weight: 500;
}

.glc-credit-cta {
    opacity: 0.8;
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.glc-cookie-credit:hover .glc-credit-cta {
    background: rgba(255,255,255,0.2);
}

/* Protect watermark from hiding */
.glc-watermark[style*="display: none"],
.glc-watermark[style*="display:none"],
.glc-watermark[style*="visibility: hidden"],
.glc-watermark[style*="visibility:hidden"],
.glc-cookie-watermark[style*="display: none"],
.glc-cookie-watermark[style*="display:none"] {
    display: block !important;
    visibility: visible !important;
}

@media print {
    .glc-watermark {
        display: block !important;
    }
}
