/* 
 * o-lekach.pl - Hub & Spoke Plugin
 * Styles for Hub (main drug page with section links)
 */

/* ==========================================================================
   Hub Section (Grid z linkami do sekcji)
   ========================================================================== */

.olekach-sections-hub {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 12px;
    margin: 50px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hub-title {
    color: white;
    font-size: 28px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
}

.hub-intro {
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 16px;
    margin: 0 0 30px 0;
}

/* Grid Layout */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Karty sekcji */
.hub-card {
    background: white;
    padding: 25px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-icon {
    font-size: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hub-label {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    position: relative;
    z-index: 1;
}

.hub-arrow {
    font-size: 20px;
    color: #667eea;
    font-weight: bold;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.hub-card:hover .hub-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .olekach-sections-hub {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .hub-title {
        font-size: 24px;
    }
    
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hub-card {
        padding: 20px 15px;
    }
    
    .hub-icon {
        font-size: 28px;
    }
    
    .hub-label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hub-title {
        font-size: 20px;
    }
    
    .hub-intro {
        font-size: 14px;
    }
    
    .hub-icon {
        font-size: 24px;
    }
    
    .hub-label {
        font-size: 14px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .olekach-sections-hub {
        background: #f5f5f5 !important;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hub-title,
    .hub-intro {
        color: #333 !important;
    }
    
    .hub-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hub-arrow {
        display: none;
    }
}
