/* ═══════════════════════════════════════════════════════════
   Scotch Down Under — Epic Holiday Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Holiday Section Layout ────────────────────────────────── */
.holiday-container {
    max-width: 850px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ── Admin Post Creator Card ─────────────────────────────── */
.holiday-admin-card {
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.holiday-admin-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.holiday-form-group {
    margin-bottom: 1.5rem;
}

.holiday-form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.holiday-input, .holiday-textarea {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.holiday-input:focus, .holiday-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    background: rgba(4, 15, 38, 0.8);
}

.holiday-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── File Upload Drag & Drop Zone ────────────────────────── */
.holiday-dropzone {
    border: 2px dashed var(--border-accent);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: rgba(2, 8, 23, 0.3);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.holiday-dropzone:hover, .holiday-dropzone.dragover {
    background: rgba(0, 240, 255, 0.04);
    border-color: var(--accent);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.holiday-dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.8;
    transition: transform var(--transition);
}

.holiday-dropzone:hover .holiday-dropzone-icon {
    transform: translateY(-4px);
}

.holiday-dropzone p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.holiday-dropzone span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Upload Previews ───────────────────────────────────────── */
.holiday-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.holiday-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-black);
}

.holiday-preview-item img, .holiday-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.holiday-preview-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.holiday-preview-remove:hover {
    background: rgb(220, 38, 38);
}

.holiday-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-black);
    font-weight: 700;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    transition: all var(--transition);
}

.holiday-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.holiday-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Blog Post Cards ───────────────────────────────────────── */
.holiday-post-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border-glass);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.holiday-post-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.03);
}

/* ── Post Header & Source Badges ───────────────────────────── */
.holiday-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.holiday-post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.holiday-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-deep);
    border: 1px solid var(--border-accent);
    object-fit: cover;
}

.holiday-author-name {
    font-weight: 700;
    color: #fff;
}

.holiday-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.holiday-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.holiday-source-badge.discord {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
}

.holiday-source-badge.website {
    color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--border-accent);
}

.holiday-source-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ── Post Content ─────────────────────────────────────────── */
.holiday-post-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.holiday-post-text a {
    color: var(--accent);
    text-decoration: underline;
}

/* ── Media Gallery ─────────────────────────────────────────── */
.holiday-post-media-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: rgba(1, 4, 15, 0.5);
    width: 100%;
}

.holiday-media-single {
    width: 100%;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.holiday-media-single img, .holiday-media-single video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.holiday-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    background: rgba(1, 4, 15, 0.8);
}

.holiday-media-grid.triple {
    grid-template-columns: repeat(3, 1fr);
}

.holiday-media-grid.quad {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 120px);
}

.holiday-grid-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: filter var(--transition), transform var(--transition);
}

.holiday-grid-item:hover {
    filter: brightness(1.15);
}

/* ── Post Actions / Comment Toggles ────────────────────────── */
.holiday-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.2rem;
    margin-top: 0.5rem;
}

.holiday-comment-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.holiday-comment-toggle:hover {
    color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
}

.holiday-comment-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.holiday-delete-post-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.holiday-delete-post-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* ── Comment Section Drawer ────────────────────────────────── */
.holiday-comments-section {
    border-top: 1px solid rgba(0, 240, 255, 0.05);
    background: rgba(1, 4, 15, 0.4);
    padding: 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin: -1.2rem -2rem -2rem -2rem;
    display: none;
    flex-direction: column;
    gap: 1.2rem;
}

.holiday-comments-section.open {
    display: flex;
}

.holiday-comments-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
    border-left: 2px solid var(--accent);
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.holiday-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for Comments */
.holiday-comments-list::-webkit-scrollbar {
    width: 4px;
}
.holiday-comments-list::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 2px;
}

.holiday-comment-bubble {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.holiday-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-glass);
    background: var(--blue-deep);
}

.holiday-comment-content {
    flex: 1;
    background: rgba(4, 15, 38, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

.holiday-comment-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
}

.holiday-comment-author-name {
    font-weight: 700;
    color: var(--accent-dim);
}

.holiday-comment-author-name.admin {
    color: var(--accent);
}

.holiday-comment-date {
    color: var(--text-muted);
}

.holiday-comment-text {
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

/* ── Join Discord Button ──────────────────────────────────── */
.holiday-join-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #5865F2;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    border: none;
    width: 100%;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.25);
}

.holiday-join-discord-btn:hover {
    background: #4752C4;
    box-shadow: 0 6px 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-1px);
}

.holiday-join-discord-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ── Admin Comment Box ────────────────────────────────────── */
.holiday-admin-comment-form {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.holiday-admin-comment-form textarea {
    flex: 1;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-height: 40px;
    height: 40px;
    resize: none;
    transition: all var(--transition);
}

.holiday-admin-comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(4, 15, 38, 0.7);
}

.holiday-comment-submit-btn {
    background: var(--accent);
    color: var(--bg-black);
    border: none;
    border-radius: var(--radius-sm);
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.holiday-comment-submit-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.holiday-comment-submit-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Lightbox Modal ────────────────────────────────────────── */
.holiday-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 15, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.holiday-lightbox.active {
    display: flex;
}

.holiday-lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: transform var(--transition);
}

.holiday-lightbox-close:hover {
    transform: scale(1.1);
}

.holiday-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday-lightbox-content img, .holiday-lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}
