/* Cookie Consent Styles for Patterns Pages - Based on Arch Implementation */
/* Simple cookie policy consent - Information level only, NO redirects */

/* Main cookie popup container (Arch .div_cookies style) */
.div_cookies {
    padding: 30px;
    width: 50%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 2px solid #AA6584;
    max-width: 800px;
    min-width: 300px;
    font-family: 'Raleway', system-ui, sans-serif;
}

.div_cookies p {
    margin-top: 20px;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Button container (Arch .div_button style) */
.div_button {
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

/* Buttons (Arch .button button style) */
.button button {
    padding: 15px 35px;
    background-color: #AA6584;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform .2s ease, background-color .2s ease;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Raleway', system-ui, sans-serif;
}

.button button:hover {
    background-color: #CFA6B7;
    transform: scale(1.03);
}

.button button:active {
    transform: scale(0.98);
}

/* Accept button specific */
.button button:first-child {
    background-color: #AA6584;
}

/* Decline button specific */
.button button:last-child {
    background-color: #45363C;
    color: white;
}

.button button:last-child:hover {
    background-color: #5A4A50;
}

/* Close button (X) - Arch .cookie-close style */
.cookie-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-family: 'Raleway', system-ui, sans-serif;
}

.cookie-close:hover {
    color: #AA6584;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Overlay background - Arch .cookie-overlay style */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99998;
    display: none;
    backdrop-filter: blur(3px);
}

.cookie-overlay.active {
    display: block;
}

/* Animation for popup */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.div_cookies {
    animation: slideUp 0.5s ease-out;
}

/* Toast notifications - Arch .cookie-toast style */
.cookie-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #AA6584;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100000;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    word-break: break-word;
    font-family: 'Raleway', system-ui, sans-serif;
}

.cookie-toast-success {
    background-color: #4BA98E;
}

.cookie-toast-warning {
    background-color: #F59E0B;
}

.cookie-toast-error {
    background-color: #EF4444;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive styles */
@media (max-width: 768px) {
    .div_cookies {
        width: 90%;
        padding: 20px;
        bottom: 10px;
    }
    
    .div_button {
        flex-direction: column;
        gap: 15px;
    }
    
    .button button {
        width: 100%;
        padding: 12px 25px;
    }
    
    .div_cookies p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .div_cookies {
        width: 95%;
        padding: 15px;
    }
    
    .button button {
        font-size: 1em;
        padding: 10px 20px;
    }
}
    margin-bottom: 15px;
}

.pattern-access-content ul {
    margin: 15px 0;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}

.pattern-access-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 10px;
}

.pattern-access-content li:before {
    content: "•";
    color: #7a1f2b;
    font-weight: bold;
    position: absolute;
    left: -10px;
}

.pattern-support-notice {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
}

.pattern-support-notice strong {
    color: #ff9800;
}

.pattern-access-alert {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
}

.pattern-access-alert strong {
    color: #f44336;
}

.pattern-access-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.pattern-access-button {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.pattern-access-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pattern-access-button:active {
    transform: translateY(0);
}

.pattern-access-continue {
    background: #7a1f2b;
    color: white;
}

.pattern-access-continue:hover {
    background: #8a2f3b;
}

.pattern-access-alternative {
    background: #45363C;
    color: white;
}

.pattern-access-alternative:hover {
    background: #55464C;
}

.pattern-access-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pattern-access-close:hover {
    background: rgba(255, 191, 0, 0.3);
    color: #ffbf00;
    border-color: #ffbf00;
    transform: rotate(90deg) scale(1.1);
}

/* Animations */
@keyframes gateSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gatePulse {
    0%, 100% {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                    0 0 0 0 rgba(255, 191, 0, 0.7);
    }
    50% {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                    0 0 0 20px rgba(255, 191, 0, 0);
    }
}

@keyframes accessAlert {
    0%, 100% {
        border-color: #ff4444;
        background: rgba(255, 0, 0, 0.2);
    }
    50% {
        border-color: #ff8888;
        background: rgba(255, 0, 0, 0.3);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pattern-access-gate {
        padding: 25px;
        width: 95%;
    }
    
    .pattern-access-gate h2 {
        font-size: 1.6rem;
    }
    
    .pattern-access-content {
        font-size: 1rem;
    }
    
    .pattern-access-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .pattern-access-button {
        width: 100%;
        min-width: unset;
        padding: 18px 25px;
        font-size: 1.1rem;
    }
    
    .pattern-access-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .pattern-access-gate {
        padding: 20px;
    }
    
    .pattern-access-gate h2 {
        font-size: 1.3rem;
    }
    
    .pattern-access-content {
        font-size: 0.95rem;
    }
    
    .pattern-access-button {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .pattern-access-alert {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .pattern-access-button {
        padding: 25px 20px;
        min-height: 80px;
    }
    
    .pattern-access-close {
        width: 60px;
        height: 60px;
        font-size: 3rem;
    }
    
    .pattern-access-button:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .pattern-access-overlay,
    .pattern-access-gate {
        display: none !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .pattern-access-gate {
        animation: none;
    }
    
    .pattern-access-button:hover,
    .pattern-access-close:hover {
        transform: none;
    }
    
    .gatePulse,
    .accessAlert {
        animation: none;
    }
}

/* Force cursor pointer on everything inside gate */
.pattern-access-gate * {
    cursor: pointer !important;
}