/*
  Gallery Styles for BARBRICKDESIGN
  3D Coverflow Gallery System
  Copyright (c) 2008-2026 Ryan Barbrick (Barbrick Design)
*/

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-container {
    width: 90%;
    height: 90%;
    max-width: 1600px;
    position: relative;
    background: rgba(5, 0, 16, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15), 0 0 80px rgba(255, 0, 255, 0.08);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: rotate(90deg);
}

/* ============================================
   GALLERY CONTENT
   ============================================ */
#merlinGallery {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffff, #7b00ff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.5));
}

.gallery-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ============================================
   COVERFLOW CONTAINER
   ============================================ */
.coverflow-container {
    flex: 1;
    position: relative;
    perspective: 1500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* Project Card in Gallery */
.gallery-project-card {
    position: absolute;
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, rgba(13, 0, 33, 0.95), rgba(20, 0, 60, 0.95));
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
}

.gallery-project-card.active {
    z-index: 100;
    transform: scale(1.2) translateZ(0);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.6);
}

.gallery-project-card:not(.active) {
    filter: brightness(0.5);
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: 1rem;
}

.card-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.card-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.card-body {
    flex: 1;
    overflow-y: auto;
}

.card-project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tag {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-btn {
    flex: 1;
    padding: 0.6rem;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.6);
}

/* ============================================
   GALLERY CONTROLS
   ============================================ */
.gallery-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.gallery-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    color: #00ffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}

.gallery-nav-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-counter {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.site-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.1em;
    margin: 1rem 0;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 40%, #ff00ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    text-transform: uppercase;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Hidden IC link inside .site-title — inherits gradient, no pointer change */
.ic-link,
.ic-link:hover,
.ic-link:focus,
.ic-link:active,
.ic-link:visited {
    color: inherit;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    cursor: default;
    -webkit-text-fill-color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    outline: transparent;
}

/* ============================================
   RESPONSIVE GALLERY
   ============================================ */
@media (max-width: 768px) {
    .gallery-container {
        width: 95%;
        height: 95%;
    }
    
    .gallery-project-card {
        width: 300px;
        height: 400px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
    
    .gallery-controls {
        gap: 1rem;
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .site-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        letter-spacing: 0.04em;
    }
}

@media (max-width: 480px) {
    .gallery-project-card {
        width: 250px;
        height: 350px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-project-title {
        font-size: 1.2rem;
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }

    .site-title {
        font-size: clamp(1.6rem, 9vw, 2.5rem);
        letter-spacing: 0.02em;
    }
}

/* ============================================
   ADDITIONAL GALLERY STYLES
   ============================================ */
.header-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.gallery-toggle-btn {
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #7b00ff, #ff00ff);
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 16px rgba(255, 0, 255, 0.4);
    letter-spacing: 0.04em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.gallery-toggle-btn:hover {
    background: linear-gradient(135deg, #9f30ff, #ff40ff);
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(255, 0, 255, 0.6);
}

.donate-btn {
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #f5a623 0%, #f7c948 100%);
    border: 2px solid rgba(245, 166, 35, 0.7);
    border-radius: 25px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 16px rgba(247, 201, 72, 0.45);
    letter-spacing: 0.04em;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #f7c948 0%, #ffe066 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(247, 201, 72, 0.7);
    color: #000;
}

.founder-badge {
    text-align: center;
    margin: 1.5rem auto;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, rgba(255, 0, 255, 0.08) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 40px rgba(255, 0, 255, 0.05);
}

.founder-title {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.founder-names {
    font-size: 0.85rem;
    color: rgba(160, 184, 216, 0.9);
}

.founder-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.founder-link {
    display: inline-block;
    font-size: 0.75rem;
    color: #ff00ff;
    text-decoration: underline;
    transition: color 0.3s ease;
    text-shadow: 0 0 6px rgba(255, 0, 255, 0.4);
}

.founder-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.founder-updates-link {
    display: inline-block;
    font-size: 0.75rem;
    color: #00ff88;
    text-decoration: underline;
    transition: color 0.3s ease;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
    font-family: 'JetBrains Mono', monospace;
}

.founder-updates-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    text-align: center;
    padding: 2.5rem 0 2rem;
    background: linear-gradient(180deg, rgba(5, 0, 16, 0.97) 0%, rgba(13, 0, 33, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 255, 255, 0.05);
    border-radius: 0 0 20px 20px;
    margin-bottom: 1rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-action-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-timestamp {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Live Feed Styles */
.live-feed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 0, 16, 0.95);
    color: #fff;
    padding: 0.5rem 0;
    z-index: 9998;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.15);
}

.live-feed-content {
    display: flex;
    animation: scroll-left 60s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.live-feed-item {
    padding: 0 2rem;
    font-size: 0.9rem;
}

.live-feed-label {
    color: #00ffff;
    font-weight: 700;
    margin-right: 0.5rem;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

body {
    padding-top: 50px; /* Space for live feed */
}
