/*!
Theme Name: Art Blog Child
Theme URI: https://www.revolutionwp.com/products/art-blog
Description: Child theme for Art Blog WordPress Theme
Author: revolutionwp
Author URI: https://www.revolutionwp.com/
Template: theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: art-blog-child
*/

/* Add your custom styles below this line */

/* ===========================
   Global Container Width
   =========================== */

/* Override parent theme container width for consistency */
.site-main,
#primary,
.container,
.site-content .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Single post/page content area */
.entry-content,
.page-content,
.post-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure full-width sections still work */
.alignfull {
    max-width: 100%;
}

/* ===========================
   Menu Spacing Adjustments
   =========================== */

/* Menu item padding */
.main-navigation ul#primary-menu>li>a,
.main-navigation div#primary-menu>ul>li>a {
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    padding: 15px 10px;
    letter-spacing: 1px;
}

/* Align menu to the right */
.main-navigation ul#primary-menu,
.main-navigation div#primary-menu>ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* For dropdown menus */
.main-navigation ul ul li {
    margin: 0;
}

.main-navigation ul ul li a {
    padding: 10px 15px;
}

/* ===========================
   Front Page Styles
   =========================== */

.front-page-main {
    background: #f5f5f5;
    padding: 0;
}

.front-page-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Banner Section */
.hero-banner-section {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.hero-banner-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.hero-banner-left {
    position: relative;
}

.hero-banner-post {
    position: relative;
    height: 100%;
}

.hero-banner-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hero-banner-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-banner-image:hover img {
    transform: scale(1.05);
}

.hero-banner-content {
    padding: 0 10px;
}

.hero-banner-category a {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.hero-banner-category a:hover {
    background: #c0392b;
}

.hero-banner-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.hero-banner-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-banner-title a:hover {
    color: #e74c3c;
}

.hero-banner-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.hero-banner-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.hero-banner-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.adsense-slot {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    overflow: hidden;
}

.adsense-placeholder {
    width: 300px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Content & League Tables Section */
.content-league-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.content-league-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-header {
    margin-bottom: 25px;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Posts Grid */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-post-item {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-post-item .post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-post-item .post-content {
    padding: 15px;
}

.category-post-item .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.category-post-item .post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-post-item .post-title a:hover {
    color: #e74c3c;
}

.category-post-item .post-meta {
    font-size: 13px;
    color: #95a5a6;
}

/* League Tables */
.league-tables-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.league-tabs {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: #34495e;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #bdc3c7;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab-button.active {
    background: #fff;
    color: #2c3e50;
    border-bottom-color: #e74c3c;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.league-table-container {
    min-height: 300px;
}

.loading,
.error,
.api-notice {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.error {
    color: #e74c3c;
}

.api-notice {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
}

.league-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.league-standings-table thead {
    background: #34495e;
    color: #fff;
}

.league-standings-table th {
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.league-standings-table th.team-col {
    text-align: left;
}

.league-standings-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s ease;
}

.league-standings-table tbody tr:hover {
    background: #f8f9fa;
}

.league-standings-table td {
    padding: 10px 5px;
    text-align: center;
}

.league-standings-table td.team-col {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.league-standings-table .team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.league-standings-table .pos-col {
    font-weight: 700;
    color: #2c3e50;
}

.league-standings-table .pts-col {
    background: #ecf0f1;
    font-weight: 700;
    color: #27ae60;
}

.league-standings-table tr.champions-league {
    border-left: 4px solid #3498db;
}

.league-standings-table tr.europa-league {
    border-left: 4px solid #f39c12;
}

.league-standings-table tr.relegation {
    border-left: 4px solid #e74c3c;
}

.standings-legend {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.champions-league {
    background: #3498db;
}

.legend-color.europa-league {
    background: #f39c12;
}

.legend-color.relegation {
    background: #e74c3c;
}

/* Trending News Section */
.trending-news-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.trending-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.trending-post-card {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.trending-post-card .card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.trending-post-card .card-content {
    padding: 20px;
}

.trending-post-card .card-category a {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 12px;
}

.trending-post-card .card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.trending-post-card .card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-post-card .card-title a:hover {
    color: #e74c3c;
}

.trending-post-card .card-meta {
    font-size: 13px;
    color: #95a5a6;
}

/* Latest News Section */
.latest-news-section {
    padding: 40px 0;
}

.latest-news-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.latest-posts-list {
    display: grid;
    gap: 25px;
}

.latest-post-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.latest-post-item:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.latest-post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.latest-post-content {
    padding: 20px 20px 20px 20px;
}

.latest-post-category a {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 12px;
}

.latest-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.latest-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-post-title a:hover {
    color: #e74c3c;
}

.latest-post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.latest-post-meta {
    font-size: 13px;
    color: #95a5a6;
    display: flex;
    gap: 15px;
}

/* Sidebar Widgets */
.latest-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
}

.widget-title {
    background: #2c3e50;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adsense-widget .adsense-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.popular-posts-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

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

.popular-post-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.popular-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: #e74c3c;
}

.popular-post-date {
    font-size: 12px;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-banner-row {
        grid-template-columns: 1fr 250px;
        gap: 20px;
    }

    .adsense-placeholder {
        width: 250px;
        height: 500px;
    }

    .content-league-row {
        grid-template-columns: 1fr;
    }

    .league-tables-column {
        position: static;
    }

    .trending-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-news-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-banner-row {
        grid-template-columns: 1fr;
    }

    .hero-banner-right {
        position: static;
    }

    .adsense-placeholder {
        width: 100%;
        height: 250px;
    }

    .hero-banner-image img {
        height: 300px;
    }

    .hero-banner-title {
        font-size: 24px;
    }

    .category-posts-grid {
        grid-template-columns: 1fr;
    }

    .trending-posts-grid {
        grid-template-columns: 1fr;
    }

    .latest-post-item {
        grid-template-columns: 1fr;
    }

    .latest-post-thumbnail img {
        height: 250px;
    }

    .latest-post-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .front-page-main .container {
        padding: 0 15px;
    }

    .hero-banner-section,
    .content-league-section,
    .trending-news-section {
        padding: 20px 0;
    }

    .hero-banner-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .tab-button {
        padding: 12px 10px;
        font-size: 12px;
    }

    .league-standings-table {
        font-size: 11px;
    }

    .league-standings-table th,
    .league-standings-table td {
        padding: 8px 3px;
    }

    .team-name {
        font-size: 11px;
    }
}

/* ===========================
   EPL Results Shortcode Styles
   =========================== */

.epl-results-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.epl-results-header {
    background: linear-gradient(135deg, #38003c 0%, #00ff85 100%);
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.epl-results-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00ff85;
}

.epl-results-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.epl-results-list {
    padding: 25px;
    background: #f8f9fa;
}

.epl-result-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
}

.epl-result-item:last-child {
    margin-bottom: 0;
}

.epl-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #38003c;
}

.match-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.match-date .date {
    font-size: 13px;
    font-weight: 700;
    color: #38003c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-date .time {
    font-size: 12px;
    color: #7f8c8d;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
}

.match-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-team {
    justify-content: flex-end;
}

.away-team {
    justify-content: flex-start;
}

.team-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.team-name {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #38003c 0%, #00ff85 100%);
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(56, 0, 60, 0.2);
}

.score-home,
.score-away {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    min-width: 25px;
    text-align: center;
}

.score-separator {
    font-size: 16px;
    color: #00ff85;
    font-weight: 700;
    margin: 0 2px;
}

.score-text {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.match-status {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #95a5a6;
}

.match-status.finished {
    color: #27ae60;
}

/* Responsive for EPL Results */
@media (max-width: 768px) {
    .epl-results-title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .epl-results-list {
        padding: 15px;
    }

    .match-details {
        gap: 12px;
    }

    .team-crest {
        width: 24px;
        height: 24px;
    }

    .team-name {
        font-size: 14px;
    }

    .score-home,
    .score-away {
        font-size: 20px;
        min-width: 22px;
    }

    .match-score {
        padding: 6px 14px;
    }

    .team {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .epl-results-header {
        padding: 20px 15px;
    }

    .epl-results-title {
        font-size: 18px;
    }

    .epl-results-list {
        padding: 12px;
    }

    .epl-result-item {
        padding: 14px;
    }

    .team-crest {
        width: 20px;
        height: 20px;
    }

    .team-name {
        font-size: 13px;
    }

    .match-date .date {
        font-size: 11px;
    }

    .match-date .time {
        font-size: 10px;
        padding: 2px 8px;
    }

    .score-home,
    .score-away {
        font-size: 18px;
    }

    .match-score {
        padding: 5px 12px;
    }

    .match-details {
        gap: 8px;
    }
}
