/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#feeds-wrapper {
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ============================================
   UNIFIED TEASER STYLES (SYNCED WITH output.php)
   ============================================ */

/* Unified container */
.tizer-container-unified {
    max-width: 800px;
    margin: 0 auto;
}

/* Unified grid - mobile first (1 column) */
.tizer-grid-unified {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Card base styles */
.tizer-card {
    border: 0px solid #000000;
}

/* Card link wrapper - mobile: horizontal layout (image left, text right) */
.tizer-card-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image wrapper */
.tizer-img-wrapper {
    overflow: hidden;
    background: #e0e0e0;
    border-radius: 8px;
}

.tizer-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* Content area */
.tizer-content {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Title */
.tizer-title {
    font-size: 1rem;
    line-height: 1.3;
    color: #333;
    font-weight: 600;
}

/* Description */
.tizer-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hover effects */
.tizer-card:hover .tizer-img-wrapper img {
    transform: scale(1.03);
}

.tizer-card:hover .tizer-title {
    text-decoration: underline;
}

/* Mobile: fixed image size and content margin */
@media (max-width: 410px) {
    .tizer-img-wrapper {
        width: 180px;
        height: 110px;
    }

    .tizer-content {
        margin-left: 0.4rem;
    }

    .tizer-img-wrapper img {
        width: 100%;
        height: 100%;
    }
}

/* Tablet+ (410px+): 2-column grid, vertical cards, large cards span 2 */
@media (min-width: 410px) {
    .tizer-grid-unified {
        grid-template-columns: repeat(2, 1fr);
    }

    .tizer-card-link {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .tizer-img-wrapper {
        width: 100%;
        height: 0;
        padding-top: 60%;
        position: relative;
    }

    .tizer-img-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 510px) {
    .tizer-card-large {
        grid-column: span 2;
    }
}

/* ============================================
   UTILITY STYLES
   ============================================ */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 18px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.global-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.global-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.global-logo a {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.global-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.global-burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.global-nav {
    display: none;
    gap: 24px;
}

.global-nav a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.global-nav a:hover {
    color: #666;
}

@media (min-width: 768px) {
    .global-burger {
        display: none;
    }
    .global-nav {
        display: flex;
    }
    .global-logo a {
        font-size: 26px;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.global-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 32px 0;
    margin-top: 48px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.global-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.global-footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.global-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.global-footer-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.global-footer-nav a:hover {
    color: #666;
}

.global-footer-text {
    font-size: 13px;
    color: #888;
    margin: 0;
}

@media (min-width: 768px) {
    .global-footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    .global-footer-nav {
        gap: 24px;
    }
}
