/* assets/css/components.css */

/* Magnetic Header */
.magnetic-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    z-index: 1000;
    transition: all 0.3s ease;
}
.magnetic-header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--color-border);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link { text-decoration: none; }
.logo img {
    height: 32px;
    width: auto;
    display: block;
}
.magnetic-header nav a {
    margin-left: calc(var(--spacing-unit) * 2);
    font-weight: 400;
    color: var(--color-text);
}

/* NEW: Hamburger Menu Button */
.hamburger-btn {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above the header background */
}
.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Animate hamburger to 'X' when menu is open */
.nav-open .hamburger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}
.nav-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Canvas */
.hero-canvas { justify-content: center; }
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.visual-mixer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 4) 0;
    flex-wrap: wrap;
}
.mixer-slot, .mixer-result {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-unit);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.mixer-slot span, .mixer-result span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}
.mixer-slot img, .mixer-result img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}
.mixer-result img {
    transition: opacity 0.3s ease;
}
.plus-icon, .equals-icon {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Interactive Hero Mixer Styles */
.interactive-slot {
    position: relative;
    cursor: pointer;
}
.interactive-slot .hidden-options { display: none; }
.interactive-slot:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    border-color: var(--color-primary);
}
.thumbnail-preview {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid var(--color-border);
}
.interactive-slot:hover .thumbnail-preview {
    opacity: 1;
    visibility: visible;
}
.thumbnail-preview img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
}
.thumbnail-preview img:hover { border-color: var(--color-secondary); }

/* Resources Section */
.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}
.resource-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
.resource-icon {
    margin-bottom: 1rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resource-icon img {
    height: 56px;
    width: 56px;
    object-fit: contain;
}
.resource-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Creative Section (formerly Playground) */
.workshop-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    width: 100%;
    max-width: 1200px;
}
.workshop-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.workshop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}
.workshop-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.card-content {
    padding: calc(var(--spacing-unit) * 1.5);
}
.workshop-card h3 {
    margin-bottom: 0.5rem;
}
.card-tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-top: 1rem;
}

/* Blog Section */
.blog-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}
.blog-post {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.blog-post img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.blog-post h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-highlight);
}
.blog-post p {
    margin-bottom: 1rem;
    max-width: 100%;
}

/* Tools Section (formerly Pricing) */
.pricing-content {
    max-width: 800px;
}
.pricing-content img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
}
.pricing-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Footer */
.creative-footer {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background: #e5e7eb;
    border-top: 1px solid var(--color-border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.footer-content p, .footer-content a {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.footer-content a:hover {
    color: var(--color-primary);
}