/*
 * Plugin Name: Go Global Awards - Master Config
 * Description: Specific styles for the Media Mentions display.
 * Version: 1.0.1 (Minor update for styling specificity)
 * Author: Your Name/Go Global Awards Team
 */

/* Media Mentions Grid Layout */
.gga-media-mentions-grid {
    display: grid;
    /* This defines the 4-column layout for larger screens. */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px; /* Space between grid items */
    padding: 20px 0; /* Padding around the entire grid */
    justify-content: center; /* Centers the grid items if they don't fill the full width */
}

/* Individual Media Mention Card Styling */
.gga-mention-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adjusted shadow for consistency */
    padding: 20px; /* Consistent padding */
    display: flex;
    flex-direction: column; /* Stack header and details vertically */
    align-items: center; /* Center content horizontally within the card */
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%; /* Ensures all cards in a row have the same height */
}

.gga-mention-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Header section containing logo and icon */
.gga-mention-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between logo and icon if both are present */
    margin-bottom: 15px; /* Space below the header */
    flex-wrap: wrap;
    width: 100%; /* Ensure header takes full width for centering */
}

/* Wrapper for the publication logo (Featured Image) - currently not in your provided markup, but kept for future use */
.gga-publication-logo-wrapper {
    flex-shrink: 0;
    line-height: 0;
}

/* Styling for the actual publication logo image - currently not in your provided markup, but kept for future use */
.gga-publication-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

/* Styling for the main mention icon container */
.gga-mention-icon {
    font-size: 2.5em; /* Size of the Font Awesome icon */
    color: #0073aa !important; /* IMPORTANT: Force icon color to WordPress blue */
    line-height: 1; /* Helps remove extra vertical space around the icon */
    display: inline-flex; /* Use flex to ensure icon is properly aligned */
    align-items: center;
    justify-content: center;
    /* Add a background and border-radius to match delegate icons, if desired */
    /* For example: */
    /* background-color: #f0f0f0; */
    /* border-radius: 50%; */
    /* width: 50px; */
    /* height: 50px; */
}

/* Styling for the link wrapped around the main icon */
.gga-mention-icon a {
    color: inherit !important; /* IMPORTANT: Ensure link color matches parent icon color */
    text-decoration: none;
    display: flex; /* Use flex for the link to center the icon */
    align-items: center;
    justify-content: center;
}

/* Details section containing title and excerpt */
.gga-mention-details {
    flex-grow: 1;
    width: 100%; /* Ensures text content takes full width within the card */
}

/* Styling for the article title */
.gga-mention-title {
    font-size: 1.15em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Styling for the link within the article title */
.gga-mention-title a {
    text-decoration: none;
    color: #333 !important; /* IMPORTANT: Force title link color to dark grey */
    display: block; /* Makes the entire title block clickable */
}

.gga-mention-title a:hover {
    color: #0073aa !important; /* IMPORTANT: Force hover color */
}

/* Styling for the article excerpt (post content) */
.gga-mention-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    text-align: justify; /* Justify text for a clean block appearance */
}

/* Styling for an optional "Read More" button/link */
.gga-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #0073aa;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.gga-read-more-btn:hover {
    background-color: #005177;
    color: #fff;
}

/* Responsive adjustments for Media Mentions Grid */
@media (max-width: 1200px) {
    .gga-media-mentions-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .gga-media-mentions-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .gga-media-mentions-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 576px) {
    .gga-media-mentions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gga-mention-card {
        padding: 15px;
    }
}