/* Winds of Urartu - Urartian Bronze & Stone Theme */

/* ===== URARTIAN COLOR VARIABLES ===== */
:root {
    --stone-950: #1a1612;
    --stone-900: #252019;
    --stone-800: #332b22;
    --stone-700: #44392d;
    --stone-600: #5c4d3d;
    --stone-400: #9c8b78;
    --stone-200: #d4ccc0;
    --bronze-400: #cd7f32;
    --bronze-500: #b87333;
    --bronze-600: #a36629;
    --patina-light: #7fb5a5;
    --patina: #4a8b7c;
    --patina-dark: #2d5c52;
    --terracotta: #c67b5c;
    --terracotta-dark: #9e5a3c;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

/* Urartian stone texture background */
.urartian-bg {
    background-color: var(--stone-950);
    background-image:
        /* Subtle noise texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        /* Volcanic rock grain */
        radial-gradient(ellipse at 20% 30%, rgba(45, 92, 82, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(205, 127, 50, 0.03) 0%, transparent 50%);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--stone-950);
    border-left: 1px solid var(--stone-800);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--stone-700) 0%, var(--stone-800) 100%);
    border-radius: 2px;
    border: 1px solid var(--stone-600);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--bronze-600) 0%, var(--bronze-500) 100%);
}

/* ===== URARTIAN DECORATIVE ELEMENTS ===== */

/* Cuneiform-inspired title styling */
.urartian-title {
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.15em;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(205, 127, 50, 0.2);
}

/* Cuneiform-inspired divider */
.cuneiform-divider {
    width: 200px;
    height: 20px;
    position: relative;
    opacity: 0.6;
}

.cuneiform-divider::before {
    content: '𒎓𒍍𒎌 𒀀𒀭 𒌑𒊒';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bronze-500);
    font-size: 14px;
    letter-spacing: 4px;
}

/* Urartian geometric border patterns - REMOVED as decorative element */
/* These were causing visual issues, keeping the class names as no-op for compatibility */
.urartian-border-top,
.urartian-border-bottom {
    display: none;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn,
.lang-btn {
    background-color: rgba(37, 32, 25, 0.8);
    transition: all 0.3s ease;
}

.filter-btn.active,
.lang-btn.active {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(184, 115, 51, 0.3) 100%);
    border-color: var(--bronze-400);
    color: var(--bronze-400);
    box-shadow:
        0 0 10px rgba(205, 127, 50, 0.2),
        inset 0 1px 0 rgba(205, 127, 50, 0.1);
}

.filter-btn:hover,
.lang-btn:hover {
    background-color: rgba(68, 57, 45, 0.6);
}

/* ===== ALBUM CARDS ===== */
.album-card {
    background: linear-gradient(145deg, var(--stone-900) 0%, var(--stone-800) 100%);
    border: 1px solid var(--stone-700);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Bronze corner accents */
.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--bronze-500);
    border-left: 2px solid var(--bronze-500);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.album-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--bronze-500);
    border-right: 2px solid var(--bronze-500);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(205, 127, 50, 0.1);
    border-color: var(--stone-600);
}

.album-card:hover::before,
.album-card:hover::after {
    opacity: 0.7;
}

.album-card .album-cover {
    transition: transform 0.3s ease;
}

.album-card:hover .album-cover {
    transform: scale(1.05);
}

/* ===== TRACK ITEMS ===== */
.track-item {
    background: rgba(37, 32, 25, 0.5);
    border: 1px solid var(--stone-800);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.track-item:hover {
    background-color: rgba(68, 57, 45, 0.5);
    border-color: var(--stone-700);
}

/* Track number styling - bronze medallion */
.track-number {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bronze-500) 0%, var(--bronze-600) 100%);
    border-radius: 50%;
    font-size: 0.875rem;
    color: var(--stone-950);
    font-weight: 600;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== LYRICS ===== */
.lyrics-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.lyrics-content.expanded {
    max-height: 2000px;
}

.lyrics-text {
    white-space: pre-wrap;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--stone-200);
}

.lyrics-text .section-label {
    color: var(--patina);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== SOUNDCLOUD EMBED ===== */
.soundcloud-embed {
    border-radius: 4px;
    overflow: hidden;
    background: var(--stone-900);
    border: 1px solid var(--stone-700);
}

.soundcloud-embed iframe {
    display: block;
}

/* ===== LOADING ANIMATION ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--bronze-400) 0%, var(--patina) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
}

/* ===== PLAY BUTTON ===== */
.play-btn {
    transition: all 0.2s ease;
    background: linear-gradient(145deg, var(--bronze-400) 0%, var(--bronze-600) 100%);
}

.play-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, var(--bronze-500) 0%, var(--bronze-400) 100%);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

/* ===== ALBUM COVER PLACEHOLDER ===== */
.cover-placeholder {
    background: linear-gradient(135deg, var(--stone-800) 0%, var(--patina-dark) 50%, var(--terracotta-dark) 100%);
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus {
    outline: 2px solid var(--bronze-400);
    outline-offset: 2px;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .filter-btn,
    .lang-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .track-item {
        margin-bottom: 0.5rem;
    }

    .track-item > div {
        padding: 1rem;
    }

    .track-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .track-item h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .track-item button {
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }

    .collection-card .flex-col {
        flex-direction: column;
    }

    .collection-card .w-full.md\:w-48 {
        width: 100%;
        height: 12rem;
    }

    .sub-albums-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    .sub-album-card .p-4 {
        padding: 0.75rem;
    }

    .sub-album-card h3 {
        font-size: 0.875rem;
    }

    .sub-album-card p {
        font-size: 0.75rem;
    }

    #album-header .flex-col {
        flex-direction: column;
    }

    #album-header .w-full.md\:w-64 {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .lyrics-text {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    section.py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    footer.py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .cuneiform-divider {
        width: 150px;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .text-2xl {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .sub-albums-grid {
        grid-template-columns: 1fr !important;
    }

    .filter-btn,
    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .cuneiform-divider::before {
        font-size: 12px;
        letter-spacing: 2px;
    }
}

/* Touch-friendly hover states */
@media (hover: none) {
    .album-card:hover {
        transform: none;
        box-shadow: none;
    }

    .album-card:hover .album-cover {
        transform: none;
    }

    .album-card:active,
    .sub-album-card:active,
    .collection-card:active,
    .track-item:active {
        opacity: 0.8;
    }
}

/* Prevent text selection on interactive elements */
.album-card,
.sub-album-card,
.collection-card,
.track-item,
.filter-btn,
.lang-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Safe area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    header {
        padding-top: env(safe-area-inset-top);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .lyrics-content {
        max-height: none;
    }
}
