/* ============================================
   COOKIE POLICY PAGE - COMPLETE STYLING
   db-portfolio WordPress Theme
   File: /assets/css/cookie.css
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ============================================
   CONTAINERS
============================================ */
.cookie-hero-container,
.cookie-container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* ============================================
   HERO SECTION
============================================ */
.cookie-hero {
    min-height: 60vh;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 30%, #fef3c7 60%, #fffbeb 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cookie-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: cookie-float 25s ease-in-out infinite;
    z-index: 0;
}

.cookie-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: cookie-float 20s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes cookie-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -40px) scale(1.1); }
    66%       { transform: translate(-30px, 30px) scale(0.95); }
}

.cookie-hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border: 2px solid #fbbf24;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    color: #78350f;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    animation: cookie-fadeInUp 1s ease 0.2s both;
}

@keyframes cookie-fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.badge-icon { font-size: 1.3rem; }

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 2rem;
    animation: cookie-fadeInUp 1s ease 0.3s both;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #64748b;
    max-width: 850px;
    margin: 0 auto 2rem;
    line-height: 1.85;
    animation: cookie-fadeInUp 1s ease 0.4s both;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: cookie-fadeInUp 1s ease 0.5s both;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid #fde68a;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.meta-icon     { font-size: 1.3rem; }
.meta-highlight { color: #f59e0b; font-weight: 700; }

/* ============================================
   CONTENT SECTION
============================================ */
.cookie-content-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   QUICK SUMMARY CARD
============================================ */
.cookie-summary-card {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.cookie-summary__title {
    font-size: 2rem;
    font-weight: 800;
    color: #78350f;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cookie-summary__item {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid #fbbf24;
}

.cookie-summary__item-icon  { font-size: 2rem; margin-bottom: 0.8rem; }
.cookie-summary__item-title { font-weight: 700; color: #78350f; margin-bottom: 0.5rem; font-size: 1.1rem; }
.cookie-summary__item-text  { color: #92400e; font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   TABLE OF CONTENTS
============================================ */
.cookie-toc-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid #f1f5f9;
}

.cookie-toc__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-toc__title-icon { font-size: 2rem; }

.cookie-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.cookie-toc__item {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-toc__item:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-color: #f59e0b;
    transform: translateX(5px);
}

.cookie-toc__link {
    color: #475569;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.3rem;
    transition: color 0.3s ease;
}

.cookie-toc__item:hover .cookie-toc__link { color: #78350f; }
.toc-arrow { color: #f59e0b; font-weight: bold; }

/* ============================================
   SECTION CARDS
============================================ */
.cookie-section-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid #f1f5f9;
    scroll-margin-top: 100px;
}

.cookie-section__title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%) 1;
}

.cookie-section__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cookie-section__content {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

.cookie-section__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.cookie-section__content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 3px;
}

.cookie-section__content h4 { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 1.5rem 0 0.8rem; }
.cookie-section__content p      { margin-bottom: 1.5rem; }
.cookie-section__content ul,
.cookie-section__content ol     { margin: 1.5rem 0; padding-left: 2rem; }
.cookie-section__content li     { margin-bottom: 1rem; line-height: 1.8; }
.cookie-section__content strong { color: #1e293b; font-weight: 700; }
.cookie-section__content em     { color: #64748b; }
.cookie-section__content a      { color: #d97706; text-decoration: underline; }
.cookie-section__content a:hover { color: #92400e; }

/* ============================================
   COOKIE TYPE GRID
============================================ */
.cookie-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.cookie-type-item {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #fde68a;
    transition: all 0.3s ease;
}

.cookie-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.cookie-type-item__icon  { font-size: 2.5rem; margin-bottom: 1rem; }
.cookie-type-item__title { font-weight: 700; color: #78350f; margin-bottom: 0.8rem; font-size: 1.2rem; }
.cookie-type-item__text  { color: #92400e; line-height: 1.7; }
.cookie-type-item__text p { margin-bottom: 0.6rem; }
.cookie-type-item__text p:last-child { margin-bottom: 0; }

/* ============================================
   DATA TABLE
============================================ */
.cookie-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cookie-data-table th {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
}

.cookie-data-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
}

.cookie-data-table tr:last-child td { border-bottom: none; }
.cookie-data-table tr:hover         { background: #fffbeb; }
.cookie-data-table a                { color: #d97706; }
.cookie-data-table a:hover          { color: #92400e; }

/* ============================================
   INFO BOXES (blue)
============================================ */
.cookie-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.cookie-info__title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cookie-info__content { color: #1e40af; line-height: 1.8; }
.cookie-info__content p { margin-bottom: 0; }

/* ============================================
   WARNING BOXES (red)
============================================ */
.cookie-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.cookie-warning__title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #991b1b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cookie-warning__content { color: #7f1d1d; line-height: 1.8; }
.cookie-warning__content p { margin-bottom: 0; }

/* ============================================
   CONTACT CTA
============================================ */
.cookie-contact-cta {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    margin-top: 4rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.cookie-contact__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.cookie-contact__title .gradient-text {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-contact__text {
    color: #475569;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cookie-contact__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
    color: white !important;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .cookie-hero    { padding: 4rem 0 3rem; min-height: auto; }
    .hero-title     { font-size: 2.8rem; }
    .hero-subtitle  { font-size: 1.1rem; }
    .hero-meta      { gap: 1rem; flex-direction: column; align-items: center; }

    .cookie-summary-card,
    .cookie-toc-card,
    .cookie-section-card { padding: 2rem 1.5rem; }

    .cookie-section__title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-section__number { width: 50px; height: 50px; font-size: 1.3rem; }

    .cookie-toc__list,
    .cookie-summary__grid,
    .cookie-type-grid { grid-template-columns: 1fr; }

    .cookie-contact-cta    { padding: 3rem 2rem; }
    .cookie-contact__title { font-size: 1.8rem; }

    .cookie-data-table      { font-size: 0.9rem; }
    .cookie-data-table th,
    .cookie-data-table td   { padding: 0.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .cookie-summary-card,
    .cookie-toc-card,
    .cookie-section-card { padding: 1.5rem 1.2rem; }
}
/* ── COMPREHENSIVE MOBILE RESPONSIVE ADDITIONS ── */
@media (max-width: 480px) {
    .hero-title  { font-size: 1.7rem; line-height: 1.3; }
    .hero-subtitle { font-size: 0.9rem; }
    .cookie-hero { padding: 3rem 0 2rem; min-height: auto; }
    .cookie-summary-card,
    .cookie-toc-card,
    .cookie-section-card { padding: 1.2rem 1rem; border-radius: 16px; }
    .cookie-section__title { font-size: 1.2rem; }
    .cookie-data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cookie-contact-cta   { padding: 2.5rem 1.2rem; border-radius: 20px; }
    .cookie-contact__title { font-size: 1.4rem; }
    .cookie-contact__btn  { padding: 1rem 2rem; font-size: 1rem; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.4rem; }
}
