/* Magazines Country Page Styles - Scoped to .magazines-country-page */

/* Scoped styles for magazines-country.php only */
.magazines-country-page {
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* Main container - scoped */
.magazines-country-page .magazines-country-container {
    color: #1e293b;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 16px;
}

.magazines-country-page .magazines-country-content {
    background: #f8faff;
    border-radius: 1.4rem;
    box-shadow: 0 4px 24px 0 rgba(37, 99, 235, 0.1);
    padding: 38px 42px 28px;
    border: 1px solid rgba(147, 197, 253, 0.3);
    margin-bottom: 32px;
}

/* Language section */
.magazines-language-section {
    margin-top: 2rem;
}

/* Header section */
.magazines-country-header {
    padding: 2.2rem 2.5rem 1.5rem 2.5rem;
    background: #f8faff;
    border-radius: 1.4rem;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px 0 rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(147, 197, 253, 0.3);
    max-width: 100%;
}

.magazines-country-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.2rem 0 0 0;
}

.magazines-country-page .stat-card {
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.07);
    border: 1.5px solid #e0e7ef;
    padding: 1.2rem 1rem 1.1rem 1rem;
    display: flex;
    align-items: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.magazines-country-page .stat-card-hover,
.magazines-country-page .stat-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px 0 rgba(59,130,246,0.15);
    z-index: 2;
}

.magazines-country-page .stat-card-inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
}

.magazines-country-page .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: #eff6ff;
    font-size: 1.6rem;
}

.magazines-country-page .stat-icon-purple { color: #8b5cf6; background: #ede9fe; }
.magazines-country-page .stat-icon-green { color: #10b981; background: #d1fae5; }
.magazines-country-page .stat-icon-blue { color: #2563eb; background: #dbeafe; }

.magazines-country-page .stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 0.2em 0;
}

.magazines-country-page .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    margin: 0;
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    .magazines-country-page .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .magazines-country-page .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .magazines-country-page .stat-card {
        padding: 0.8rem 0.7rem 0.7rem 0.7rem;
        flex-direction: row;
    }
    .magazines-country-page .stat-icon {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.2rem;
    }
    .magazines-country-page .stat-label {
        font-size: 0.93rem;
    }
    .magazines-country-page .stat-number {
        font-size: 1.3rem;
    }
}

    padding: 2.2rem 2.5rem 1.5rem 2.5rem;
    background: #f8faff;
    border-radius: 1.4rem;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px 0 rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(147, 197, 253, 0.3);
    max-width: 100%;
}

.magazines-country-page .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.magazines-country-page .section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.4rem 0;
    gap: 0.7rem;
    line-height: 1.2;
}

.magazines-country-page .section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 640px) {
    .magazines-country-header {
        padding: 1.2rem 0.9rem 1.1rem 0.9rem;
        border-radius: 1rem;
    }
    .section-header {
        gap: 0.35rem;
        margin-bottom: 0.6rem;
    }
    .section-title {
        font-size: 1.2rem;
        gap: 0.4rem;
    }
    .section-subtitle {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .magazines-country-header {
        padding: 0.7rem 0.3rem 0.7rem 0.3rem;
        border-radius: 0.7rem;
    }
    .section-title {
        font-size: 1rem;
    }
    .section-subtitle {
        font-size: 0.90rem;
    }
}

/* Fix for text visibility - scoped to magazines-country-page */
.magazines-country-page {
    color: #1e293b;
}

/* Ensure all text is visible - scoped */
.magazines-country-page .stat-card,
.magazines-country-page .stat-label,
.magazines-country-page .stat-number,
.magazines-country-page .section-title,
.magazines-country-page .section-subtitle {
    color: #1e293b;
}

/* Ensure links are visible - scoped */
.magazines-country-page a {
    color: #2563eb;
    text-decoration: none;
}

.magazines-country-page a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
    color: #1f2937;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.magazines-country-page .section-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0 auto 32px;
    max-width: 800px;
    line-height: 1.6;
}

/* Icon Sizing Fixes - Scoped */
.magazines-country-page .magazines-country-stats-icon svg {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-block;
    vertical-align: middle;
}

.magazines-country-page .magazines-country-header svg,
.magazines-country-page .section-header svg,
.magazines-country-page .section-title svg {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.magazines-country-page .publication-card svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.magazines-country-page .view-count svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.magazines-country-page .rating svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* Stats grid - scoped */
.magazines-country-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Publications Grid - scoped */
.magazines-country-page .publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .magazines-country-page .publications-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .magazines-country-page .publications-grid {
        grid-template-columns: 1fr;
    }
}

.magazines-country-page .publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Publication card - scoped */
.magazines-country-page .publication-card {
    background: #ffffff;
    border: 4px solid transparent;
    border-width: 2px 4px;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.magazines-country-page .publication-card h3 {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0.5rem 0;
}

.magazines-country-page .publication-card h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
    margin-right: 0.5rem;
}

.magazines-country-page .publication-card h3 a:hover {
    color: #4f46e5;
    text-decoration: none;
}

.magazines-country-page .type-badge {
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
}

.magazines-country-page .magazine-badge {
    background-color: #10b981; /* Emerald */
}

.magazines-country-page .newspaper-badge {
    background-color: #3b82f6; /* Blue */
}

/* Base border colors - scoped */
.magazines-country-page .publication-card.magazine {
    border-color: rgba(16, 185, 129, 0.3);
    border-left-color: #10b981;
    border-right-color: #10b981;
}

.magazines-country-page .publication-card.newspaper {
    border-color: rgba(59, 130, 246, 0.3);
    border-left-color: #3b82f6;
    border-right-color: #3b82f6;
}

/* Hover effects - scoped */
.magazines-country-page .publication-card.magazine:hover {
    border-color: #10b981;
    border-width: 3px 4px;
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1), 
                0 4px 6px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.magazines-country-page .publication-card.newspaper:hover {
    border-color: #3b82f6;
    border-width: 3px 4px;
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1), 
                0 4px 6px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.magazines-country-page .publication-card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.magazines-country-page .type-badge {
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    top: -1px;
}

.magazines-country-page .magazine-badge {
    background-color: #10b981;
}

.magazines-country-page .newspaper-badge {
    background-color: #3b82f6;
}

.magazines-country-page .publication-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.magazines-country-page .publication-meta svg {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.magazines-country-page .language-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.magazines-country-page .language-tag svg {
    color: #6b7280;
    margin-right: 0.25rem;
}

/* View count - scoped */
.magazines-country-page .view-count {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.magazines-country-page .view-count svg {
    margin-right: 0.25rem;
    width: 1rem;
    height: 1rem;
}

/* Rating - scoped */
.magazines-country-page .rating {
    display: inline-flex;
    color: #f59e0b;
}

.magazines-country-page .rating svg {
    width: 1rem;
    height: 1rem;
}

/* Publication description - scoped */
.magazines-country-page .publication-description {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.magazines-country-page .publication-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Decorative Braces - scoped */
.magazines-country-page .card-braces {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
}

.magazines-country-page .brace {
    color: rgba(0, 0, 0, 0.05);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.magazines-country-page .left-brace {
    margin-left: -0.5rem;
    margin-top: -0.5rem;
}

.magazines-country-page .right-brace {
    margin-right: -0.5rem;
    margin-top: auto;
    margin-bottom: -0.5rem;
}

.magazines-country-page .publication-card:hover .brace {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Hover effects - scoped */
.magazines-country-page .publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.magazines-country-page .view-count {
    display: inline-flex;
    align-items: center;
    background-color: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.magazines-country-page .view-count svg {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
    color: #6b7280;
}

.magazines-country-page .rating {
    display: inline-flex;
    align-items: center;
    color: #f59e0b;
}

.magazines-country-page .rating svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Responsive styles - scoped */
@media (max-width: 1024px) {
    .magazines-country-page .publications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .magazines-country-page .magazines-country-content {
        padding: 24px;
    }
    
    .magazines-country-page .section-title {
        font-size: 1.5rem;
    }
    
    .magazines-country-page .section-subtitle {
        font-size: 1rem;
    }
    
    .magazines-country-page .publications-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}


/* Gradient text effect for card titles on hover - scoped */
.magazines-country-page .publication-card:hover h3 a {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

/* Section Header Styles */
.magazines-country-page .section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.magazines-country-page .section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.magazines-country-page .section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Standard property for line-clamp - scoped */
.magazines-country-page .publication-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* Fallback for non-WebKit browsers */
}

