/*
 * Plugin Name: Go Global Awards - Master Config
 * Description: Specific styles for the International Delegates display.
 */

/* International Delegates Grid Layout */
.gga-delegates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
}

.gga-delegate-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.gga-delegate-image-wrapper {
    margin-bottom: 15px;
    line-height: 0;
}

.gga-delegate-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gga-delegate-text-content {
    /* To contain name, position, company */
    width: 100%; /* Ensure it takes full width within the card */
}

.gga-delegate-name {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.2;
}

.gga-delegate-position {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.2;
}

.gga-delegate-company {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px; /* Space between company and social icons */
    line-height: 1.2;
}

/* NEW: Elementor-like social icon wrapper */
.gga-social-icons-wrapper {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center the icons */
    align-items: center;
    flex-wrap: wrap; /* Allow icons to wrap if too many */
    gap: 10px; /* Space between social icons */
    margin-top: 10px; /* Adjust spacing from company name */
}

.gga-grid-item {
    /* For consistency with Elementor, though flexbox 'gap' makes it less critical */
    display: inline-block; /* Allows items to sit next to each other */
}

.gga-icon {
    display: inline-flex; /* Use flex to center icon/image inside the link */
    align-items: center;
    justify-content: center;
    width: 36px; /* Standard icon size */
    height: 36px; /* Standard icon size */
    border-radius: 50%; /* Circular background */
    color: #666;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gga-icon:hover {
    color: #333;
}

/* Flag specific styles */
.gga-social-icon-flag { /* Using a more specific class for the flag container */
    width: auto; /* Allow image to define width */
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.gga-social-icon-flag:hover {
    background: none;
}

.gga-fix-flag { /* Match the class from your markup */
    width: 26px;
    height: 18px !important; /* Using !important if necessary to override themes */
    border-radius: 0;
    margin-bottom: 0px;
    cursor: auto;
    display: block; /* Important to remove extra space under image */
}


/* Specific Social Icon Background Colors (as before) */
.gga-social-icon-globe { /* Corresponds to 'website' type */
    /* Default is already grey, no specific color needed unless overridden */
}
.gga-social-icon-globe:hover {
    background-color: #1abc9c;
    color: #fff;
}

.gga-social-icon-linkedin-in { /* Corresponds to 'linkedin' type */
    background-color: #0077B5;
    color: #fff;
}
.gga-social-icon-linkedin-in:hover {
    background-color: #005a8d;
}

.gga-social-icon-facebook-f {
    background-color: #3b5998;
    color: #fff;
}
.gga-social-icon-facebook-f:hover {
    background-color: #2d4373;
}

.gga-social-icon-twitter {
    background-color: #1da1f2;
    color: #fff;
}
.gga-social-icon-twitter:hover {
    background-color: #0c85d0;
}

.gga-social-icon-instagram {
    background-color: #E1306C;
    color: #fff;
}
.gga-social-icon-instagram:hover {
    background-color: #b31e51;
}

.gga-social-icon-youtube {
    background-color: #FF0000;
    color: #fff;
}
.gga-social-icon-youtube:hover {
    background-color: #cc0000;
}

.gga-social-icon-github {
    background-color: #333;
    color: #fff;
}
.gga-social-icon-github:hover {
    background-color: #000;
}

.gga-social-icon-link { /* Generic fallback */
    background-color: #6c757d;
    color: #fff;
}
.gga-social-icon-link:hover {
    background-color: #545b62;
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
/* ... (Existing CSS) ... */

/* New Social Icon Specific Styles */
.gga-social-icon-other {
    background-color: #6c757d; /* A neutral grey */
    color: #fff;
}
.gga-social-icon-other:hover {
    background-color: #545b62;
}

/* ... (Rest of existing CSS) ... */



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

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

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

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