/*
Theme Name: Bitcoin Art Gallery Enhanced
Theme URI: https://bitcoingalleryart.patternbyetsy.com
Author: Your Name
Author URI: https://yoursite.com
Description: Modern art gallery theme with advanced slider management, Etsy import, and multiple theme presets for Bitcoin-inspired artwork
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bitcoin-art-gallery
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f7931a;
    --secondary-color: #1a1a2e;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #0f0f1e;
    --accent-gold: #f7931a;
    --transition: all 0.3s ease;
    
    /* Theme colors - dynamically set by PHP */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #f7931a;
    --accent-hover: #d87d0e;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Dosis', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #d87d0e;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-color);
    color: #000000 !important;
}

.btn-primary:hover {
    background: #d87d0e;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(247, 147, 26, 0.3);
    color: #000000 !important;
}

/* Ensure black text for button links */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:visited {
    color: #000000 !important;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: #000000;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent-color);
}

.header-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px;
    width: 100%;
}

/* Main Navigation */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Order set dynamically via theme-colors.php */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    /* Order set dynamically via theme-colors.php */
}

.logo-small {
    display: flex;
    justify-content: center;
}

.logo-small a {
    display: block;
    line-height: 0;
}

.logo-small .logo-image {
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.05em;
}

/* Tagline when positioned separately below logo */
.tagline-below {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.05em;
    width: 100%;
    /* Order set dynamically via theme-colors.php */
    padding: 5px 0;
}

.accent {
    color: var(--accent-gold);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-top: 80px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.art-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.art-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.art-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.art-card:hover .art-image img {
    transform: scale(1.1);
}

.art-info {
    padding: 25px;
}

.art-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.art-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.art-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.art-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.art-actions {
    display: flex;
    gap: 10px;
}

.art-link {
    padding: 8px 20px;
    background: var(--accent-gold);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.art-link:hover {
    background: #d87d0e;
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   MOBILE MENU (HAMBURGER)
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        position: relative;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide navigation by default on mobile */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 80px 20px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 16px !important;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    /* Logo section on mobile */
    .logo-section {
        order: 1;
        width: 100%;
        padding-right: 60px; /* Space for hamburger */
    }
    
    /* Mobile logo size is now controlled via admin settings - see theme-colors.php */
    
    
    /* Smaller tagline on mobile */
    .logo-tagline {
        font-size: 14px !important;
        margin-top: 5px !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Main content spacing for fixed header */
    .main-content {
        margin-top: 100px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo-tagline {
        font-size: 16px !important;
    }
    
    .main-nav a {
        font-size: 14px !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
