/* Article Page Specific Styles */
.article-page {
    padding: 2rem 0;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background-color: #f9fafb;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: articlePulse 8s ease-in-out infinite;
}

@keyframes articlePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(45deg); opacity: 0.6; }
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    opacity: 0.7;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.article-meta .category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.article-meta .publish-date,
.article-meta .read-time,
.article-meta .views {
    opacity: 0.9;
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: white;
}

/* Author Section */
.author-section {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-avatar {
    flex-shrink: 0;
}

.author-details strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: white;
}

.author-details span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    color: white;
}

.author-details p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
    color: white;
}

/* Article Content */
.article-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-toc {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.article-toc h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 0.5rem;
}

.article-toc a {
    color: #6b7280;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
}

.article-toc a:hover {
    color: #3b82f6;
    border-left-color: #3b82f6;
    transform: translateX(5px);
}

/* Article Text */
.article-text {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
}

.article-text section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.article-text section:last-child {
    margin-bottom: 0;
}

.article-text h2 {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e5e7eb;
    position: relative;
}

.article-text h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.article-text h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.article-text h4 {
    color: #4b5563;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.article-text p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-text li {
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-text li strong {
    color: #374151;
    font-weight: 600;
}

.article-text a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-text a:hover {
    color: #2563eb;
}

/* Special Boxes */
.highlight-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #3b82f6;
}

.highlight-box h4 {
    color: #1d4ed8;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.highlight-box p {
    color: #1e40af;
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #f59e0b;
}

.warning-box h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.warning-box p,
.warning-box ul {
    color: #b45309;
    margin-bottom: 0;
}

.warning-box li {
    color: #b45309;
}

.tip-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #34d399;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #10b981;
}

.tip-box h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.tip-box p {
    color: #047857;
    margin-bottom: 0;
}

.info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #0284c7;
}

.info-box h4 {
    color: #0c4a6e;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.info-box p {
    color: #0369a1;
    margin-bottom: 0;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.info-card p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Code Examples */
.code-example {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-example h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #374151;
}

.code-example pre {
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.code-example.good {
    background: #f0fdf4;
    border-color: #22c55e;
}

.code-example.good code {
    color: #15803d;
}

.code-example.bad {
    background: #fef2f2;
    border-color: #ef4444;
}

.code-example.bad code {
    color: #dc2626;
}

/* Tables */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.comparison-table td {
    color: #4b5563;
    font-size: 0.9rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f9fafb;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.right-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.right-card h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.right-card p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.right-card p:last-child {
    margin-bottom: 0;
}

/* Cookie Classification */
.cookie-classification {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-type {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.cookie-type h4 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-type p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cookie-type p:last-child {
    margin-bottom: 0;
}

/* Document Template */
.document-template {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.document-template h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.document-template ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.document-template li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.document-template li:last-child {
    border-bottom: none;
}

.document-template strong {
    color: #1f2937;
    min-width: 140px;
    display: inline-block;
}

/* Sanctions Grid */
.sanctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sanction-level {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.sanction-level h4 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.sanction-level p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sanction-level p:last-child {
    margin-bottom: 0;
}

/* Checklist */
.checklist {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.checklist h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.checklist-section {
    margin-bottom: 2rem;
}

.checklist-section:last-child {
    margin-bottom: 0;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0.5rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.checklist label:hover {
    background-color: #f9fafb;
}

.checklist input[type="checkbox"] {
    margin: 0;
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checklist label span {
    line-height: 1.5;
    color: #4b5563;
}

.checklist a {
    color: #3b82f6;
}

/* Action Box */
.action-box {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.action-box h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.action-box p {
    color: white;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-box .btn {
    background: white;
    color: #3b82f6;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Article Footer */
.article-footer {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    padding: 0.375rem 0.875rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-share {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.article-share h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.related-articles h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.related-card {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.related-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-card h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.related-date {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-content {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .article-toc {
        padding: 1.5rem;
    }
    
    .article-text {
        padding: 2rem;
    }
    
    .article-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .article-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .article-toc {
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    .article-text {
        order: 1;
        padding: 1.5rem;
    }
    
    .article-header {
        padding: 2rem 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.125rem;
    }
    
    .article-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .author-details {
        text-align: center;
    }
    
    .info-grid,
    .rights-grid,
    .cookie-classification,
    .sanctions-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .article-text h3 {
        font-size: 1.25rem;
    }
    
    .article-toc {
        padding: 1rem;
    }
    
    .article-text {
        padding: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-meta {
        gap: 0.5rem;
    }
    
    .article-meta .category {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .highlight-box,
    .warning-box,
    .tip-box,
    .info-box {
        padding: 1rem;
    }
    
    .action-box {
        padding: 1.5rem 1rem;
    }
    
    .action-box h4 {
        font-size: 1.25rem;
    }
    
    .checklist {
        padding: 1.5rem;
    }
    
    .article-footer {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .article-page {
        background: white;
        margin-top: 0;
        padding: 0;
    }
    
    .article-header {
        background: white !important;
        color: black !important;
    }
    
    .article-header h1,
    .article-subtitle,
    .author-details strong,
    .author-details span,
    .author-details p {
        color: black !important;
    }
    
    .article-toc,
    .share-buttons,
    .related-articles {
        display: none;
    }
    
    .article-content {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .article-text {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    
    .article-text h2 {
        page-break-after: avoid;
    }
    
    .article-text section {
        page-break-inside: avoid;
    }
    
    .highlight-box,
    .warning-box,
    .tip-box,
    .info-box {
        border: 2px solid #ccc;
        background: #f9f9f9 !important;
    }
    
    .action-box {
        background: #f0f0f0 !important;
        color: black !important;
        border: 2px solid #ccc;
    }
}