/**
 * Cookie Notice Styles
 * 
 * Styling for the minimal cookie consent system
 */

/* Cookie Notice Container */
.pcp-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ffffff;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Cookie Notice Content */
.pcp-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Cookie Notice Text */
.pcp-cookie-text {
    flex: 1;
    line-height: 1.5;
}

.pcp-cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #ecf0f1;
}

.pcp-cookie-text a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.pcp-cookie-text a:hover {
    color: #5dade2;
}

/* Cookie Notice Actions */
.pcp-cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Cookie Notice Buttons */
.pcp-cookie-accept,
.pcp-cookie-decline {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pcp-cookie-accept {
    background: #27ae60;
    color: #ffffff;
}

.pcp-cookie-accept:hover {
    background: #229954;
    transform: translateY(-1px);
}

.pcp-cookie-decline {
    background: transparent;
    color: #ecf0f1;
    border: 1px solid #ecf0f1;
}

.pcp-cookie-decline:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcp-cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .pcp-cookie-actions {
        justify-content: center;
    }
    
    .pcp-cookie-accept,
    .pcp-cookie-decline {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pcp-cookie-content {
        padding: 15px;
    }
    
    .pcp-cookie-text p {
        font-size: 13px;
    }
    
    .pcp-cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .pcp-cookie-accept,
    .pcp-cookie-decline {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Body class for when notice is active */
body.pcp-cookie-notice-active {
    padding-bottom: 100px; /* Adjust based on notice height */
}

/* Animation for notice appearance */
.pcp-cookie-notice {
    animation: slideUp 0.3s ease-out;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pcp-cookie-notice {
        background: #000000;
        border-top: 2px solid #ffffff;
    }
    
    .pcp-cookie-accept {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
    
    .pcp-cookie-decline {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pcp-cookie-notice,
    .pcp-cookie-accept,
    .pcp-cookie-decline {
        transition: none;
        animation: none;
    }
}
