/* 
 * AysimaPOS - Cookies Policy Page Styles
 * Modern SaaS Design - Variables Based
 * copilot-instructions.md COMPLIANT: NO inline styles, modular CSS
 */

/* Hero Section - Matching Terms Design */
.cookies-hero {
    background: var(--gradient-primary);
    padding: var(--spacing-16) 0 var(--spacing-14);
    position: relative;
    overflow: hidden;
}

.cookies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.cookies-hero .container {
    max-width: 1280px;
}

.cookies-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-8);
    color: #ffffff;
    position: relative;
    z-index: var(--z-index-10);
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.cookies-hero__subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: #ffffff;
    opacity: 0.95;
    position: relative;
    z-index: var(--z-index-10);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* Hero subtitle internal links - SEO optimized */
.cookies-hero__subtitle a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.cookies-hero__subtitle a:hover {
    color: var(--gray-100) !important;
    text-decoration-thickness: 2px !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3) !important;
}

.cookies-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

/* Content Section */
.cookies-section {
    margin-bottom: 0;
}

.cookies-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.cookies-section__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Cookies List */
.cookies-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.cookies-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.cookies-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-600);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Custom Alert System - AdminLTE Bypass */
.cookies-alert {
    display: flex !important;
    align-items: flex-start !important;
    padding: 1.25rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    margin-bottom: 1.5rem !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

.cookies-alert__icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin-right: 1rem !important;
    font-size: 1.25rem !important;
}

.cookies-alert__content {
    flex: 1 !important;
}

.cookies-alert__title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.cookies-alert__text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Alert Variants */
.cookies-alert--info {
    background-color: var(--primary-100) !important;
    border-color: var(--primary-400) !important;
}

.cookies-alert--info .cookies-alert__icon {
    background-color: var(--primary-600) !important;
    color: #ffffff !important;
}

.cookies-alert--info .cookies-alert__title {
    color: var(--primary-700) !important;
}

.cookies-alert--info .cookies-alert__text {
    color: var(--primary-800) !important;
}

.cookies-alert--success {
    background-color: var(--success-50) !important;
    border-color: var(--success-300) !important;
}

.cookies-alert--success .cookies-alert__icon {
    background-color: var(--success-500) !important;
    color: #ffffff !important;
}

.cookies-alert--success .cookies-alert__title {
    color: var(--success-600) !important;
}

.cookies-alert--success .cookies-alert__text {
    color: var(--success-800) !important;
}

.cookies-alert--warning {
    background-color: var(--warning-50) !important;
    border-color: var(--warning-300) !important;
}

.cookies-alert--warning .cookies-alert__icon {
    background-color: var(--warning-500) !important;
    color: #ffffff !important;
}

.cookies-alert--warning .cookies-alert__title {
    color: var(--warning-600) !important;
}

.cookies-alert--warning .cookies-alert__text {
    color: var(--warning-700) !important;
}

.cookies-alert--danger {
    background-color: var(--danger-50) !important;
    border-color: var(--danger-400) !important;
}

.cookies-alert--danger .cookies-alert__icon {
    background-color: var(--danger-500) !important;
    color: #ffffff !important;
}

.cookies-alert--danger .cookies-alert__title {
    color: var(--danger-600) !important;
}

.cookies-alert--danger .cookies-alert__text {
    color: var(--danger-700) !important;
}

.cookies-alert--primary {
    background-color: var(--accent-50) !important;
    border-color: var(--accent-400) !important;
}

.cookies-alert--primary .cookies-alert__icon {
    background-color: var(--accent-600) !important;
    color: #ffffff !important;
}

.cookies-alert--primary .cookies-alert__title {
    color: var(--danger-800) !important;
}

.cookies-alert--primary .cookies-alert__text {
    color: var(--accent-800) !important;
}

/* Cookies Table */
.cookies-table {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.cookies-table thead {
    background-color: var(--gray-50);
}

.cookies-table th {
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-100);
    padding: 0.75rem;
}

.cookies-table td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--gray-600);
}

.cookies-table code {
    background-color: var(--gray-50);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--danger-500);
}

/* Browser Cards */
.browser-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.browser-card:hover {
    border-color: var(--primary-600);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.browser-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    border-radius: 8px;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.browser-card__content {
    flex: 1;
}

.browser-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.browser-card__text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Third Party List */
.third-party-list {
    margin-top: 1.5rem;
}

.third-party-item {
    padding: 1.25rem;
    background: var(--gray-50);
    border-left: 4px solid var(--primary-600);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.third-party-item__header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.third-party-item__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Contact Info */
.contact-info {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.contact-item i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

/* Links */
.cookies-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookies-link:hover {
    color: var(--accent-500);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookies-hero__title {
        font-size: 2rem;
    }

    .cookies-hero__subtitle {
        font-size: 1rem;
    }

    .cookies-section__title {
        font-size: 1.5rem;
    }

    .browser-card {
        padding: 1rem;
    }

    .browser-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .cookies-alert {
        flex-direction: column !important;
    }

    .cookies-alert__icon {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }
}

/* Print Styles */
@media print {
    .cookies-hero {
        background: none;
        color: var(--gray-900);
    }

    .cookies-hero__title,
    .cookies-hero__subtitle {
        color: var(--gray-900);
    }

    .browser-card,
    .third-party-item {
        page-break-inside: avoid;
    }
}

/* ============================================
   Hero Animations - Unique Style: Slide Up
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookies-hero__badge {
    animation: slideUp 0.6s ease-out;
}

.cookies-hero__title {
    animation: slideUp 0.7s ease-out 0.1s both;
}

.cookies-hero__subtitle {
    animation: slideUp 0.7s ease-out 0.2s both;
}
