/*
Theme Name: Surface Pattern Studio
Theme URI: https://ashbystudios.com
Author: Ashby Studios
Author URI: https://ashbystudios.com
Description: A modern WordPress theme for surface pattern designers
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: surface-pattern-studio
*/

/* Base Styles */
:root {
    --color-primary: #2C3E50;
    --color-secondary: #E74C3C;
    --color-text: #2C3E50;
    --color-gray: #95A5A6;
    --color-light: #ECF0F1;
    --font-header: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1280px;
    --spacing-section: 6rem;
    --spacing-element: 2rem;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
}

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

/* Image Gallery Navigation Styles */
#current-featured-image {
    transition: opacity 0.3s ease-in-out;
}

.thumbnail-strip-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.thumbnail-strip-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-strip-container::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-strip-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .thumbnail-strip-container {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.thumbnail-item {
    position: relative;
}

.thumbnail-item.active .thumbnail-item > div {
    border-color: #f97316;
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #f97316;
    color: #f97316;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:hover {
    background: #f97316;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-btn-left {
    left: 20px;
}

.gallery-nav-btn-right {
    right: 20px;
}

@media (min-width: 768px) {
    .gallery-nav-btn-left {
        left: 30px;
    }
    
    .gallery-nav-btn-right {
        right: 30px;
    }
}

.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
}

.gallery-nav-btn:disabled,
.gallery-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-element);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-element);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #34495E;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: #F8F9FA;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-element);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2rem;
    height: 2rem;
    color: white;
}

/* Categories Section */
.categories-section {
    padding: var(--spacing-section) 0;
    background-color: var(--color-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-item:hover .category-image {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-link:hover {
    text-decoration: underline;
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
}

/* About Section */
.about-section {
    padding: var(--spacing-section) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.image-wrapper img {
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -2rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    z-index: -1;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: var(--spacing-section) 0;
    background-color: var(--color-primary);
    color: white;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --spacing-section: 4rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* WordPress Core Classes */
.alignfull {
    margin: 2rem calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    margin: 2rem calc(25% - 25vw);
    max-width: 100vw;
    width: 100vw;
}

/* Navigation */
.site-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

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

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.site-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-link {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .site-auth {
        width: 100%;
        justify-content: flex-start;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
}

/* Grid Items */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.pattern-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pattern-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pattern-item:hover img {
    transform: scale(1.1);
}

/* Utility Classes */
.prose {
    max-width: 65ch;
}

.prose p {
    margin-bottom: 1.5rem;
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

.font-header {
    font-family: var(--font-header);
}

/* Tailwind-like Utility Classes for Header */
.container-custom {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-white {
    background-color: white;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-900 {
    color: #111827;
}

.hover\:text-gray-500:hover {
    color: #6b7280;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.inline-flex {
    display: inline-flex;
}

.p-2 {
    padding: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.ml-8 {
    margin-left: 2rem;
}

.border-l {
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #e5e7eb;
}

.pl-8 {
    padding-left: 2rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-medium {
    font-weight: 500;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

.bg-gray-50 {
    background-color: #f9fafb;
}

/* Responsive utilities */
@media (min-width: 1024px) {
    .lg\:hidden {
        display: none;
    }
    
    .lg\:flex {
        display: flex;
    }
    
    .lg\:items-center {
        align-items: center;
    }
    
    .lg\:space-x-8 > * + * {
        margin-left: 2rem;
    }
}

.hidden {
    display: none;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.block {
    display: block;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #e5e7eb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.pt-4 {
    padding-top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 300px;
        background: var(--color-primary);
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.is-active {
        transform: translateX(0);
    }

    .mobile-menu .menu {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }
}

/* Pattern Archive */
.pattern-archive {
    padding: 4rem 0;
}

.pattern-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-gray);
    border-radius: 0.25rem;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Comprehensive Tailwind-like Utility Classes */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.justify-center {
    justify-content: center;
}

.inline-flex {
    display: inline-flex;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.block {
    display: block;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.aspect-w-4 {
    position: relative;
    padding-bottom: 75%;
}

.aspect-h-3 {
    position: relative;
    padding-bottom: 75%;
}

.aspect-w-4 > *,
.aspect-h-3 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.form-select,
.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #111827;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.form-select:focus,
.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.hover\:text-primary:hover {
    color: var(--color-primary);
}

.bg-primary\/10 {
    background-color: rgba(44, 62, 80, 0.1);
}

.hover\:bg-primary\/20:hover {
    background-color: rgba(44, 62, 80, 0.2);
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.max-w-none {
    max-width: none;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Additional utility classes */
.gap-12 {
    gap: 3rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #111827;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    resize: vertical;
}

.form-textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

@media (min-width: 768px) {
    .md\:p-8 {
        padding: 2rem;
    }
} 