/* ============================================================================
   HIZAPPY COMPONENT STÍLUSOK
   ============================================================================ */

/* ===== SANDBOX LOGIN COMPONENT ===== */
body { 
    background: #f6f8fa; 
}

.sandbox-card { 
    box-shadow: 0 4px 24px #0001; 
    border-radius: 16px; 
}

.sandbox-logo { 
    display: block; 
    margin: 0 auto 18px auto; 
    max-width: 120px; 
}

.sandbox-title { 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: #1a237e; 
}

.sandbox-desc { 
    color: #444; 
    font-size: 1.08rem; 
    margin-bottom: 1.2rem; 
}

/* ===== MAGAZINE COMPONENTS ===== */
.magazine-block {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--card-bg);
}

.magazine-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.magazine-block-content {
    min-height: 100px;
}

.empty-magazine {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.empty-block {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

/* ===== NAVBAR MENÜCSOPORTOK ===== */
.nav-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 3px solid #007bff;
    margin: 8px 0 4px 0;
    padding: 8px 16px !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057 !important;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-group-header:first-child {
    margin-top: 0;
}

/* Admin accordion stílusok */
.nav-admin-accordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-admin-accordion .accordion-button {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 12px 16px;
}

.nav-admin-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: none;
}

.nav-admin-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.nav-admin-accordion .accordion-body {
    background: #ffffff;
    border-top: 1px solid #dee2e6;
}

/* Menücsoportok közötti elválasztók */
.nav-admin-accordion hr {
    margin: 12px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 50%, transparent 100%);
}

/* Nav link stílusok az admin menüben */
.nav-admin-accordion .nav-link {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 8px;
}

.nav-admin-accordion .nav-link:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.nav-admin-accordion .nav-link.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

/* ===== POST CARD COMPONENTS ===== */
/* Globális link szín felülbírálása */
a {
    color: #2c3e50 !important;
    text-decoration: none;
}

a:hover {
    color: #667eea !important;
    text-decoration: none;
}

.magazine-section {
    padding: 40px 0;
}

.magazine-block {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.block-content {
    padding: 25px;
}

.post-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.post-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-image-sm {
    height: 140px;
    object-fit: cover;
    width: 100%;
}

.post-image-hero {
    height: 400px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.post-image-small {
    height: 120px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.post-title-hero {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #2c3e50;
}

.post-title-hero:hover {
    color: #667eea;
}

.post-excerpt-hero {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-title-small {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #2c3e50;
}

.post-title-small:hover {
    color: #667eea;
}

.post-card-small {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.post-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.post-content-small {
    padding: 15px;
}

.recommended-post {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 15px;
}

.recommended-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #2c3e50;
}

.recommended-title:hover {
    color: #667eea;
}

.category-badge-small {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e9ecef;
}

.category-badge-small:hover {
    background: #e9ecef;
    color: #495057;
}

.post-card-text {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    padding: 20px;
}

.post-card-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #2c3e50;
}

.post-title:hover {
    color: #667eea;
}

.post-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #f1f3f4;
    padding-top: 15px;
    margin-top: 15px;
}

.category-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e9ecef;
}

.category-badge:hover {
    background: #e9ecef;
    color: #495057;
}

.empty-magazine {
    text-align: center;
    color: #6c757d;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .magazine-section {
        padding: 20px 0;
    }
    
    .magazine-block {
        margin-bottom: 20px;
    }
    
    .post-image-hero {
        height: 250px;
    }
    
    .post-title-hero {
        font-size: 1.4rem;
    }
}

.post-image-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-image-sm {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-image-small {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.post-title-hero {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin: var(--spacing-md) 0;
}

.post-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: var(--spacing-sm) 0;
}

.post-title-small {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin: var(--spacing-sm) 0;
}

.post-excerpt-hero {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.post-meta {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.category-badge {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    text-decoration: none;
    border: 1px solid #e9ecef;
}

.category-badge-small {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.2rem 0.4rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    text-decoration: none;
    border: 1px solid #e9ecef;
}

/* ===== LANDING PAGE COMPONENTS ===== */
.landing-bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.landing-bubble1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.landing-bubble2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.landing-bubble3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.landing-bubble4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== ALERT COMPONENTS ===== */
.alert-preview {
    border-radius: 0;
    margin: 0;
}

/* ===== MEDIA LIBRARY COMPONENTS ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.media-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-base);
}

.media-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.media-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-info {
    padding: var(--spacing-sm);
}

.media-filename {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    word-break: break-word;
}

.media-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===== QUIZ COMPONENTS ===== */
.quiz-container {
    background: var(--light-purple);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

.quiz-logo {
    height: 48px;
    margin-bottom: var(--spacing-md);
}

.quiz-title {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

/* ===== FORM COMPONENTS ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.form-section {
    margin-bottom: var(--spacing-xl);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
}

/* ===== MODAL COMPONENTS ===== */
.modal-preview {
    padding: 0;
}

.modal-preview .modal-body {
    padding: 0;
}

.preview-iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

/* ===== NAVIGATION COMPONENTS ===== */
.navbar-brand {
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

/* ===== BUTTON COMPONENTS ===== */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-group-vertical .btn {
    margin-bottom: var(--spacing-xs);
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

/* Gombokban lévő linkek stílusai */
.btn.btn-primary a,
.btn.btn-primary a:hover,
.btn.btn-primary a:focus,
.btn.btn-primary a:visited,
a.btn.btn-primary,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
a.btn.btn-primary:visited {
    color: white !important;
    text-decoration: none !important;
}

.btn.btn-secondary a,
.btn.btn-secondary a:hover,
.btn.btn-secondary a:focus,
.btn.btn-secondary a:visited,
a.btn.btn-secondary,
a.btn.btn-secondary:hover,
a.btn.btn-secondary:focus,
a.btn.btn-secondary:visited {
    color: white !important;
    text-decoration: none !important;
}

.btn.btn-success a,
.btn.btn-success a:hover,
.btn.btn-success a:focus,
.btn.btn-success a:visited,
a.btn.btn-success,
a.btn.btn-success:hover,
a.btn.btn-success:focus,
a.btn.btn-success:visited {
    color: white !important;
    text-decoration: none !important;
}

.btn.btn-danger a,
.btn.btn-danger a:hover,
.btn.btn-danger a:focus,
.btn.btn-danger a:visited,
a.btn.btn-danger,
a.btn.btn-danger:hover,
a.btn.btn-danger:focus,
a.btn.btn-danger:visited {
    color: white !important;
    text-decoration: none !important;
}

.btn.btn-warning a,
.btn.btn-warning a:hover,
.btn.btn-warning a:focus,
.btn.btn-warning a:visited,
a.btn.btn-warning,
a.btn.btn-warning:hover,
a.btn.btn-warning:focus,
a.btn.btn-warning:visited {
    color: #000 !important;
    text-decoration: none !important;
}

.btn.btn-info a,
.btn.btn-info a:hover,
.btn.btn-info a:focus,
.btn.btn-info a:visited,
a.btn.btn-info,
a.btn.btn-info:hover,
a.btn.btn-info:focus,
a.btn.btn-info:visited {
    color: white !important;
    text-decoration: none !important;
}

.btn.btn-light a,
.btn.btn-light a:hover,
.btn.btn-light a:focus,
.btn.btn-light a:visited,
a.btn.btn-light,
a.btn.btn-light:hover,
a.btn.btn-light:focus,
a.btn.btn-light:visited {
    color: #000 !important;
    text-decoration: none !important;
}

.btn.btn-dark a,
.btn.btn-dark a:hover,
.btn.btn-dark a:focus,
.btn.btn-dark a:visited,
a.btn.btn-dark,
a.btn.btn-dark:hover,
a.btn.btn-dark:focus,
a.btn.btn-dark:visited {
    color: white !important;
    text-decoration: none !important;
}

/* Outline gombokban lévő linkek */
.btn.btn-outline-primary a,
.btn.btn-outline-primary a:hover,
.btn.btn-outline-primary a:focus,
.btn.btn-outline-primary a:visited,
a.btn.btn-outline-primary,
a.btn.btn-outline-primary:hover,
a.btn.btn-outline-primary:focus,
a.btn.btn-outline-primary:visited {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.btn-outline-secondary a,
.btn-outline-secondary a:hover,
.btn-outline-secondary a:focus,
.btn-outline-secondary a:visited {
    color: #6c757d !important;
    text-decoration: none !important;
}

.btn-outline-success a,
.btn-outline-success a:hover,
.btn-outline-success a:focus,
.btn-outline-success a:visited {
    color: #28a745 !important;
    text-decoration: none !important;
}

.btn-outline-danger a,
.btn-outline-danger a:hover,
.btn-outline-danger a:focus,
.btn-outline-danger a:visited {
    color: #dc3545 !important;
    text-decoration: none !important;
}

.btn-outline-warning a,
.btn-outline-warning a:hover,
.btn-outline-warning a:focus,
.btn-outline-warning a:visited {
    color: #ffc107 !important;
    text-decoration: none !important;
}

.btn-outline-info a,
.btn-outline-info a:hover,
.btn-outline-info a:focus,
.btn-outline-info a:visited {
    color: #17a2b8 !important;
    text-decoration: none !important;
}

.btn-outline-light a,
.btn-outline-light a:hover,
.btn-outline-light a:focus,
.btn-outline-light a:visited {
    color: #f8f9fa !important;
    text-decoration: none !important;
}

.btn-outline-dark a,
.btn-outline-dark a:hover,
.btn-outline-dark a:focus,
.btn-outline-dark a:visited {
    color: #343a40 !important;
    text-decoration: none !important;
}

/* ===== TABLE COMPONENTS ===== */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: var(--font-weight-semibold);
}

.table td {
    vertical-align: middle;
}

/* ===== CARD COMPONENTS ===== */
.card-hover {
    transition: var(--transition-base);
    cursor: pointer;
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header-custom {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: var(--font-weight-semibold);
}

/* ===== UTILITY COMPONENTS ===== */
.text-inherit {
    color: inherit !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-underline {
    text-decoration: underline !important;
}

.text-break {
    word-break: break-word !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
