/*
Theme Name: Blind Tunes Theme
Theme URI: https://blindtunes.com
Description: Custom theme for Blind Tunes - a blind music ranking game
Version: 1.3.0
Author: BlindTunes
Text Domain: blindtunes
*/

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a { color: #f72585; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #ff4d9a; }

/* Layout */
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-area { padding: 40px 0; }

/* Full page layout */
.page-template-full-width .site-header,
.page-template-full-width .site-footer { display: none; }
.page-template-full-width .content-area { padding: 0; }

/* Header */
.site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo .custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo .site-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer logo */
.footer-logo-img {
    max-height: 40px;
    width: auto;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation { display: flex; align-items: center; gap: 24px; }
.main-navigation ul { display: flex; list-style: none; gap: 24px; margin: 0; padding: 0; }
.main-navigation a { color: #888; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: #fff; }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    .main-navigation.is-open ul { display: flex; }
}

/* Footer */
.site-footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.footer-logo {
    margin-bottom: 16px;
}

.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.footer-nav a { color: #888; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copyright { color: #666; font-size: 12px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 37, 133, 0.3);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-description { color: #888; font-size: 14px; }

/* Forms - scoped to avoid affecting Blind Tunes plugin */
.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="password"],
.site-main input[type="number"],
.site-main input[type="search"],
.site-main textarea,
.site-main select,
.site-footer input[type="text"],
.site-footer input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.2s;
}

.site-main input:focus, 
.site-main textarea:focus, 
.site-main select:focus {
    outline: none;
    border-color: #f72585;
}

.site-main input::placeholder { color: #666; }

/* Blind Tunes App Wrapper */
.blind-tunes-wrapper {
    min-height: 100vh;
}

.blind-tunes-wrapper.full-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

/* Page Content */
.page-content { max-width: 800px; }
.page-content p { margin-bottom: 1em; color: #ccc; }
.page-content ul, .page-content ol { margin-left: 1.5em; margin-bottom: 1em; color: #ccc; }

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: #888; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* WordPress Specific */
.wp-block-image img { max-width: 100%; height: auto; border-radius: 12px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }

/* Footer Legal Links */
.footer-legal {
    margin: 16px 0;
    font-size: 13px;
}

.footer-legal a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #f72585;
}

.footer-sep {
    margin: 0 10px;
    color: #444;
}

/* Full Width with Header/Footer template */
.full-width-content {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}
