/*
Theme Name:     FSO-HNS
Theme URI:      n/a
Template:       kadence
Author:         Open Ocean Group
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* FSO-HNS Event Feed Styles - Clean Design */
.fsohns-event-feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.event-feed-content {
    border-radius: 8px;
    padding: 20px;
}

.event-feed-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.filter-group button {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.filter-group button:hover {
    background: #005a87;
}

.filter-group button:last-child {
    background: #6c757d;
}

.filter-group button:last-child:hover {
    background: #545b62;
}

/* Shimmer Loading Effects */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.shimmer-container {
    display: grid;
    gap: 20px;
}

.shimmer-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.shimmer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.shimmer-title {
    height: 24px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.shimmer-badge {
    height: 20px;
    width: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

.shimmer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.shimmer-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.shimmer-description {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.shimmer-description .shimmer-line {
    margin-bottom: 8px;
}

.shimmer-description .shimmer-line:last-child {
    width: 80%;
}

.event-feed-loading {
    padding: 20px 0;
}

.event-feed-error {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 16px;
    margin: 20px 0;
    color: white;
}

.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-content h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
}

.error-content p {
    margin: 0 0 24px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.retry-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.event-feed-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.event-feed-results {
    display: grid;
    gap: 20px;
}

.event-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

.event-badge {
    margin-bottom: 6px;
}

.event-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.event-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 400 !important;
    color: #215387 !important;
    line-height: 1.3;
}

.event-source {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 35px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.event-source.clinch_event {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #c3e6c3;
}

.event-source.clinch_webinar {
    background: #e8f4fd;
    color: #1e4a6b;
    border: 1px solid #b3d9f2;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.event-details > div {
    font-size: 14px;
    line-height: 1.5;
}

.event-details strong {
    color: #495057;
    font-weight: 600;
}

.event-venue {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.event-location {
    color: #6c757d;
    font-size: 13px;
}

.event-partner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6c757d;
}

.event-partner-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.event-partner-text {
    font-weight: 500;
}

.event-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    line-height: 1.6;
}

.event-website {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.event-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.event-actions .button {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 4px;
    border: none;
    cursor: pointer;
}

.event-actions .button:hover {
    background: #005a87;
    transform: translateY(-1px);
    text-decoration: none;
}

.event-session-code,
.event-credits {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

.event-website a {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.event-website a:hover {
    background: #005a87;
    text-decoration: none;
}

.event-feed-pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.event-feed-pagination button {
    padding: 12px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.event-feed-pagination button:hover {
    background: #005a87;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .event-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .event-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fsohns-event-feed-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .event-item {
        padding: 15px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
}

/* Slim UI Mode */
.fsohns-event-feed-container.ui-slim {
    padding: 10px;
}

.fsohns-event-feed-container.ui-slim .event-feed-content {
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Slim Event Items */
.event-item-slim {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.event-item-slim-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.event-item-slim-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.event-badge-slim {
    flex-shrink: 0;
}

.event-source-slim {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-source-slim.clinch_event {
    background: #10b981;
    color: white;
}

.event-source-slim.clinch_webinar {
    background: #3b82f6;
    color: white;
}

.event-info-slim {
    flex: 1;
    min-width: 0;
}

.event-title-slim {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #215387;
    line-height: 1.3;
}

.event-date-slim-above {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 500;
}

.event-meta-slim {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.event-date-slim,
.event-venue-slim,
.event-location-slim {
    white-space: nowrap;
}

.event-item-slim-right {
    flex-shrink: 0;
}

.button-slim {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    background: #215387;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button-slim:hover {
    background: #1e40af;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments for slim mode */
@media (max-width: 768px) {
    .event-item-slim-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .event-item-slim-right {
        align-self: flex-end;
    }
    
    .event-meta-slim {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

