/**
 * Public styles for Now Georgia Regional Support plugin
 *
 * @package    Now_Georgia_Regional_Support
 * @subpackage Now_Georgia_Regional_Support/assets/css
 * @since      1.0.0
 */

.ngrs-regional-content {
    margin: 20px 0;
    padding: 0;
}

.ngrs-content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ngrs-content-item {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.ngrs-content-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ngrs-content-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.ngrs-content-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ngrs-content-item h3 a:hover {
    color: #3498db;
}

.ngrs-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.ngrs-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.ngrs-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.ngrs-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

/* Regional content widget styling */
.widget .ngrs-regional-content {
    margin: 10px 0;
}

.widget .ngrs-content-item {
    padding: 15px;
    margin-bottom: 10px;
}

.widget .ngrs-content-item h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

/* Region Selector Styles */
.ngrs-region-selector {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.ngrs-selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
    font-size: 1.1em;
}

.ngrs-region-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ngrs-region-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ngrs-region-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ngrs-region-button {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 6px;
    color: #007cba;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ngrs-region-button:hover {
    background: #007cba;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.ngrs-region-button.ngrs-active {
    background: #007cba;
    color: #fff;
}

.ngrs-region-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

/* Transition effects */
body.ngrs-transitioning {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Regional body classes for styling */
.ngrs-region-northeast-georgia {
    --region-color: #2e7d32;
}

.ngrs-region-west-central-georgia {
    --region-color: #1976d2;
}

.ngrs-enabled .ngrs-region-selector {
    border-left: 4px solid var(--region-color, #007cba);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .ngrs-content-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .ngrs-content-item h3 {
        font-size: 1.1em;
    }
    
    .ngrs-excerpt {
        font-size: 0.9em;
    }
    
    .ngrs-region-selector {
        padding: 15px;
        margin: 15px 0;
    }
    
    .ngrs-region-buttons {
        flex-direction: column;
    }
    
    .ngrs-region-button {
        width: 100%;
        text-align: center;
    }
    
    .ngrs-region-dropdown {
        max-width: 100%;
    }
}

/* Header Region Selector Styles */
.ngrs-header-region-selector {
    position: relative;
}

.sf-menu li.ngrs-region-selector-menu-item {
    margin-top: 11px;
}

.ngrs-header-region-toggle {
    cursor: pointer;
    display: inline-block;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 4px 12px !important;
    transition: all 0.2s ease;
    margin: 0 !important;
    line-height: normal !important;
}

.ngrs-header-region-toggle:hover {
    background-color: #2d5a8f;
    color: #ffffff;
}

.ngrs-header-region-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 200px;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.ngrs-header-region-item {
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ngrs-header-region-item:last-child {
    border-bottom: none;
}

.ngrs-header-region-item a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.ngrs-header-region-item a:hover {
    background-color: #f8f9fa;
    color: #007cba;
}

.ngrs-header-region-item.ngrs-active a {
    background-color: #007cba;
    color: #fff;
    font-weight: 600;
}

.ngrs-header-region-item.ngrs-active a:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Ensure proper positioning in Newspaper theme */
#td-header-menu .ngrs-header-region-selector .sub-menu {
    left: 0;
    right: auto;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .ngrs-header-region-menu {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
    
    .ngrs-header-region-item a {
        padding: 15px 20px;
        font-size: 16px;
    }
}
