/**
 * Information Module - Frontend Styles
 * 
 * Styling för öppettider, sociala medier och kontaktinformation
 *
 * @package SQO_Modular_Plugin
 * @subpackage Modules/Information
 */

/* ==========================================================================
   Öppettider - Detaljerat format
   ========================================================================== */

.sqo-opening-hours.detailed {
    margin: 20px 0;
}

.sqo-opening-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sqo-opening-hours-row:last-child {
    border-bottom: none;
}

.sqo-opening-hours-row.today {
    background-color: #f3f4f6;
    font-weight: 600;
}

.sqo-day {
    flex: 0 0 150px;
}

.sqo-hours {
    text-align: right;
}

.sqo-hours.closed {
    color: #dc2626;
}

.sqo-hours.special {
    color: #059669;
    font-weight: 600;
}

/* ==========================================================================
   Öppettider - Kompakt format
   ========================================================================== */

.sqo-opening-hours.compact {
    margin: 20px 0;
}

.sqo-opening-hours.compact p {
    margin: 8px 0;
}

/* ==========================================================================
   Öppettider - Tabell format
   ========================================================================== */

.sqo-opening-hours.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.sqo-opening-hours.table thead {
    background-color: #f9fafb;
}

.sqo-opening-hours.table th,
.sqo-opening-hours.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.sqo-opening-hours.table th {
    font-weight: 600;
}

/* ==========================================================================
   Avvikande öppettider
   ========================================================================== */

.sqo-special-hours {
    margin: 20px 0;
}

.sqo-special-hours h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.sqo-special-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sqo-special-hours li {
    padding: 12px 16px;
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    margin-bottom: 8px;
}

.sqo-special-label {
    color: #92400e;
    margin-left: 8px;
}

.sqo-special-hours .sqo-special-hours {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Sociala medier
   ========================================================================== */

.sqo-social-media {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.sqo-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
}

.sqo-social-link:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.sqo-social-icon {
    font-size: 24px;
}

.sqo-social-media.icons .sqo-social-label {
    display: none;
}

/* Specifika färger för plattformar */
.sqo-social-facebook:hover {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

.sqo-social-instagram:hover {
    background: linear-gradient(135deg, #fff5f7 0%, #fef3c7 100%);
    border-color: #ec4899;
}

.sqo-social-tiktok:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
}

/* ==========================================================================
   Kontaktinformation
   ========================================================================== */

.sqo-contact-info {
    margin: 20px 0;
}

.sqo-contact-item {
    margin-bottom: 20px;
}

.sqo-contact-item:last-child {
    margin-bottom: 0;
}

.sqo-contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: #374151;
}

.sqo-contact-item p {
    margin: 0;
}

.sqo-contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.sqo-contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Kontaktpersoner
   ========================================================================== */

.sqo-contact-persons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sqo-contact-persons li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sqo-contact-persons li:last-child {
    border-bottom: none;
}

.sqo-contact-persons h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.sqo-contact-persons p {
    margin: 0;
    font-size: 1rem;
}

.sqo-contact-persons a {
    color: #2563eb;
    text-decoration: none;
}

.sqo-contact-persons a:hover {
    text-decoration: underline;
}

/* Responsiv layout för större skärmar */
@media (min-width: 1024px) {
    .sqo-contact-persons li {
        flex-direction: row;
        gap: 16px;
    }
    
    .sqo-contact-persons h2 {
        flex: 0 0 25%;
    }
    
    .sqo-contact-persons p:first-of-type {
        flex: 0 0 25%;
    }
    
    .sqo-contact-persons p:last-of-type {
        flex: 0 0 50%;
    }
}

/* ==========================================================================
   Responsiv design
   ========================================================================== */

@media (max-width: 768px) {
    .sqo-opening-hours-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .sqo-day {
        flex: none;
    }
    
    .sqo-hours {
        text-align: left;
    }
    
    .sqo-social-media {
        flex-wrap: wrap;
    }
    
    .sqo-opening-hours.table {
        font-size: 14px;
    }
    
    .sqo-opening-hours.table th,
    .sqo-opening-hours.table td {
        padding: 8px 12px;
    }
}