/**
 * Stylesheet für SH Gallery Categories View
 * Inkl. Tag-Styling
 */

.sh-gallery-categories {
    padding: 20px 0;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 2rem;
}

.page-header .lead {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Card */
.category-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.category-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category Title */
.category-title {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.category-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.category-title a:hover {
    color: #0066cc;
}

.restriction-icon {
    display: inline-block;
    margin-left: 8px;
    color: #ffc107;
    font-size: 0.85em;
}

.restriction-icon i {
    vertical-align: middle;
}

/* Category Meta */
.category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item [class^="icon-"] {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Category Description */
.category-description {
    color: #495057;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

/* Category Actions */
.category-actions {
    margin-top: auto;
    padding-top: 16px;
}

.category-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.category-actions .btn [class^="icon-"] {
    font-size: 0.9em;
}

/* Alert Styling */
.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert [class^="icon-"] {
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .sh-gallery-categories {
        padding: 15px 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .category-content {
        padding: 16px;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-tags {
        gap: 4px;
    }
    
    .tag-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .category-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .category-title a {
        color: #e2e8f0;
    }
    
    .category-title a:hover {
        color: #63b3ed;
    }
    
    .category-description {
        color: #cbd5e0;
    }
    
    .category-meta {
        color: #a0aec0;
    }
    
    .tag-badge {
        background-color: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .tag-badge:hover {
        background-color: #718096;
    }
}

/* Print Styles */
@media print {
    .category-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .category-actions {
        display: none;
    }
}