/*
Theme Name: Music2Create
Theme URI: https://music2create.com
Author: Music2Create
Author URI: https://music2create.com
Description: A custom WordPress theme for Music2Create - AI Music Creation
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: music2create
*/

/* ========================================
   CSS Variables & Base Styles
======================================== */
:root {
    --color-navy: #1a2d42;
    --color-navy-dark: #0f1c2a;
    --color-navy-light: #243b53;
    --color-orange: #e67e22;
    --color-orange-light: #f39c12;
    --color-orange-dark: #d35400;
    --color-white: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-text: #333333;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* ========================================
   Header & Navigation
======================================== */
.site-header {
    background-color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.site-logo .logo-text .music {
    color: var(--color-navy);
}

.site-logo .logo-text .two {
    color: var(--color-orange);
    position: relative;
}

.site-logo .logo-text .create {
    color: var(--color-navy);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-navy);
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: width var(--transition-normal);
}

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

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-navy);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-navy);
    transition: var(--transition-fast);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 50%, #f5a623 100%);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="80" cy="30" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="70" r="25" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><polygon points="85,70 95,85 75,85" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="0.5"/><rect x="10" y="60" width="20" height="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 3rem;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.hero-btn:hover {
    background-color: var(--color-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Album Tracklist Section
======================================== */
.album-tracklist {
    background-color: var(--color-navy);
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    max-width: 1200px;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.album-cover {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracklist-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
    color: var(--color-white);
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background-color: rgba(230, 126, 34, 0.3);
}

.track-number {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    width: 1.5rem;
    flex-shrink: 0;
}

.track-title {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.track-links {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.track-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.track-link:hover {
    background-color: var(--color-orange);
    transform: scale(1.1);
}

.track-link svg {
    width: 14px;
    height: 14px;
    fill: var(--color-white);
}

.track-duration {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.75rem;
    min-width: 3rem;
    text-align: right;
}

/* ========================================
   About Section
======================================== */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.about-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray);
}

.about-content p {
    margin-bottom: 1rem;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.contact-info {
    text-align: right;
}

.contact-info h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.contact-info a {
    color: var(--color-white);
}

.contact-info a:hover {
    color: var(--color-orange);
}

/* ========================================
   WordPress Specific Styles
======================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 992px) {
    .tracklist-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        padding-top: 1rem;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-top: 1px solid var(--color-gray-light);
    }
    
    .main-navigation a {
        display: block;
        padding: 0.75rem 0;
    }
    
    .hero-section {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .album-tracklist {
        flex-direction: column;
        margin: 0 1rem;
        margin-top: -1rem;
    }
    
    .album-cover {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.25rem;
    }
    
    .track-item {
        padding: 0.4rem;
    }
    
    .track-links {
        gap: 0.25rem;
    }
    
    .track-link {
        width: 24px;
        height: 24px;
    }
}
