/* Blog-specific styles */

/* Blog Page Header */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Blog Content Layout */
.blog-content {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.blog-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 2rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    min-height: 300px;
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.blog-card.featured .blog-image {
    height: auto;
    min-height: 300px;
}

.blog-image img {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
}

.blog-card.featured .blog-image img {
    width: 120px;
    height: 120px;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    background-color: #2b6cb0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date {
    color: #718096;
    font-size: 0.9rem;
}

.blog-card h2 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #2b6cb0;
}

.blog-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #1a365d;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.sidebar-widget h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    color: #4a5568;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #2b6cb0;
}

.category-list span {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.popular-post h4 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post h4 a:hover {
    color: #2b6cb0;
}

.post-date {
    color: #718096;
    font-size: 0.8rem;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    position: relative;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 108, 176, 0.9);
    border-radius: 12px;
}

.newsletter-widget * {
    position: relative;
    z-index: 1;
}

.newsletter-widget h3 {
    color: white;
}

.newsletter-widget p {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-newsletter input {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.sidebar-newsletter button {
    background-color: #38a169;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-newsletter button:hover {
    background-color: #2f855a;
}

/* Blog CTA */
.blog-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
}

.blog-cta .cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-cta p {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Article Page Styles */
.article-page {
    background-color: #f7fafc;
}

.article {
    padding: 2rem 0;
}

.article-header {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    margin-bottom: 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2b6cb0;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    background-color: #2b6cb0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date,
.reading-time {
    color: #718096;
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-lead {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-image {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.article-image img {
    width: 120px;
    height: 120px;
    filter: brightness(0) invert(1);
}

/* Article Content */
.article-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.article-content h2 {
    color: #1a365d;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #2b6cb0;
    padding-left: 1rem;
}

.article-content h3 {
    color: #2b6cb0;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.article-content h4 {
    color: #1a365d;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.article-content strong {
    color: #1a365d;
    font-weight: 600;
}

/* Info Boxes */
.info-box,
.warning-box,
.tip-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.info-box {
    background-color: #ebf8ff;
    border-left-color: #3182ce;
}

.info-box h3 {
    color: #3182ce;
    margin-bottom: 1rem;
}

.warning-box {
    background-color: #fef5e7;
    border-left-color: #d69e2e;
}

.warning-box h3 {
    color: #d69e2e;
    margin-bottom: 1rem;
}

.tip-box {
    background-color: #f0fff4;
    border-left-color: #38a169;
}

.tip-box h3 {
    color: #38a169;
    margin-bottom: 1rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: #2b6cb0;
    color: white;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-weight: 600;
}

tbody tr:hover {
    background-color: #f7fafc;
}

/* Case Study */
.case-study {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.9);
    border-radius: 12px;
}

.case-study * {
    position: relative;
    z-index: 1;
}

.case-study h3 {
    color: white;
    margin-bottom: 1rem;
}

.case-study h4 {
    color: #e2e8f0;
    margin: 1rem 0 0.5rem 0;
}

.case-study p,
.case-study li {
    color: #e2e8f0;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 108, 176, 0.9);
    border-radius: 12px;
}

.article-cta * {
    position: relative;
    z-index: 1;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

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

.author-info {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.author-info h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.author-info p {
    color: #4a5568;
    line-height: 1.6;
}

.related-articles h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
}

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

.related-article {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.related-article h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-article span {
    color: #718096;
    font-size: 0.9rem;
}

/* Legal Page Specific Styles */
.btn-manage-cookies {
    background-color: #2b6cb0;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.btn-manage-cookies:hover {
    background-color: #1a365d;
}

.contact-info,
.company-info {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #2b6cb0;
}

.purposes-list,
.rights-section {
    margin: 2rem 0;
}

.purpose-item,
.advantage-item {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2b6cb0;
}

.purpose-item h4,
.advantage-item h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.purpose-item p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cookie-types {
    margin: 2rem 0;
}

.cookie-type {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.cookie-table table {
    margin-top: 1rem;
}

.retention-table {
    margin: 2rem 0;
}

.security-measures {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.security-measures h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.browser-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.browser-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.browser-item h4 {
    color: #2b6cb0;
    margin-bottom: 0.5rem;
}

.browser-item p {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
}

.impact-warning,
.impact-info {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.impact-warning {
    background: #fef5e7;
    border: 1px solid #d69e2e;
}

.impact-warning h3 {
    color: #d69e2e;
}

.impact-info {
    background: #ebf8ff;
    border: 1px solid #3182ce;
}

.impact-info h3 {
    color: #3182ce;
}

.social-cookies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.social-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.social-item h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.contact-cookies,
.final-contact {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #2b6cb0;
}

.final-reminder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.final-reminder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 108, 176, 0.9);
    border-radius: 12px;
}

.final-reminder * {
    position: relative;
    z-index: 1;
}

.final-reminder h3 {
    color: white;
    margin-bottom: 1rem;
}

.final-reminder p {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        order: -1;
    }

    .sidebar-widget {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        align-items: start;
    }

    .newsletter-widget {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .blog-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-card.featured .blog-image {
        height: 200px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .article-header {
        padding: 2rem 1rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem 1rem;
    }

    .article-footer {
        padding: 2rem 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        grid-template-columns: 1fr;
    }

    .browser-instructions {
        grid-template-columns: 1fr;
    }

    .social-cookies {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-lead {
        font-size: 1.1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .info-box,
    .warning-box,
    .tip-box,
    .case-study,
    .article-cta {
        padding: 1rem;
    }
}
