/* Design Studio Theme Custom Styles */

:root {
    --sunset-orange: #e67e22;
    --sunset-amber: #f39c12;
    --sunset-light: #f7dc6f;
    --sunset-cream: #fcf3cf;
    --text-dark: #2c3e50;
    --text-medium: #34495e;
    --shadow-soft: 0 4px 12px rgba(230, 126, 34, 0.1);
    --shadow-hover: 0 8px 24px rgba(230, 126, 34, 0.2);
}

* {
    line-height: 1.6;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background: linear-gradient(135deg, var(--sunset-cream) 0%, #fefefe 100%);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Breathing animation */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.breathing {
    animation: breathe 4s ease-in-out infinite;
}

/* Hover lift effects */
.hover-lift {
    transition: all 0.4s ease-out;
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Centered navigation */
.navbar-custom {
    background: rgba(252, 243, 207, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--sunset-orange);
    padding: 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-brand a {
    color: var(--sunset-orange) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand a:hover {
    color: var(--sunset-amber) !important;
}

.navbar-item {
    font-weight: 600;
    color: var(--text-dark) !important;
    border-radius: 4px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.navbar-item:hover {
    background: var(--sunset-light) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px);
}

/* Hero in frame */
.hero-framed {
    background: var(--sunset-cream);
    margin: 24px;
    border: 4px solid var(--sunset-orange);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-framed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(230, 126, 34, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 24px;
}

/* Organized mosaic */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    padding: 24px;
    margin: 32px 0;
}

.mosaic-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    border-left: 4px solid var(--sunset-amber);
    transition: all 0.4s ease-out;
}

.mosaic-large {
    grid-column: span 8;
    grid-row: span 2;
}

.mosaic-medium {
    grid-column: span 4;
}

.mosaic-small {
    grid-column: span 6;
}

.mosaic-wide {
    grid-column: span 12;
}

/* Adaptive radius */
.radius-small { border-radius: 4px; }
.radius-medium { border-radius: 8px; }
.radius-large { border-radius: 12px; }

/* Brutal style buttons */
.btn-brutal {
    background: var(--sunset-orange);
    color: white;
    border: none;
    padding: 12px 32px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--text-dark);
    transition: all 0.3s ease;
    text-transform: none;
    display: inline-block;
    text-decoration: none;
}

.btn-brutal:hover {
    background: var(--sunset-amber);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-dark);
    color: white;
}

.btn-brutal:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text-dark);
}

/* Additional brutal accents */
.brutal-accent {
    position: relative;
}

.brutal-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--sunset-amber);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--sunset-orange);
    font-family: 'Playfair Display', serif;
}

.icon-brutal {
    background: var(--sunset-light);
    color: var(--sunset-orange);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    border: 2px solid var(--sunset-amber);
}

/* Contact section */
.contact-section {
    background: var(--sunset-orange);
    color: white;
    margin: 32px 24px;
    border-radius: 12px;
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: breathe 6s ease-in-out infinite;
}

/* WordPress specific styles */
#top_menus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    padding: 1.5rem 0;
    background: rgba(252, 243, 207, 0.95);
    border-bottom: 3px solid var(--sunset-orange);
    margin: 0;
}

#top_menus .nav-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease-in-out;
}

#top_menus .nav-link:hover,
#top_menus .nav-link:focus {
    color: var(--sunset-orange);
}

/* Post list */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

/* Post item card */
.post-item {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Featured image */
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post title */
.post-item h3 {
    font-size: 1.125rem;
    margin: 1rem;
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-item h3 a:hover {
    color: var(--sunset-orange);
}

/* Post excerpt */
.post-item p {
    margin: 0 1rem 1.25rem;
    color: var(--text-medium);
    flex: 1 0 auto;
}

/* Read more link */
.post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0 1rem 1.25rem;
    background: var(--sunset-orange);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s ease-in-out;
}

.post-item > a:last-of-type:hover {
    background: var(--sunset-amber);
}

/* Pagination */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: var(--sunset-orange);
    transition: background 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--sunset-orange);
    color: white;
    border-color: var(--sunset-orange);
}

.next.page-numbers,
.prev.page-numbers {
    border-color: transparent;
    color: var(--sunset-orange);
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
    color: var(--sunset-amber);
    background: transparent;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 8px 16px;
    border-left: 3px solid var(--sunset-amber);
}

.breadcrumbs a {
    color: var(--sunset-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--sunset-amber);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Page content */
.page-content {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem 2rem;
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* Page featured image */
.page-content .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page title */
.page-content h1 {
    font-size: 1.75rem;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: var(--text-dark);
    text-align: center;
}

/* Page content */
.page-content .content p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

/* Footer */
footer {
    background: #1c1c1c;
    color: #d3d3d3;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-top: 4px solid var(--sunset-orange);
}

/* Footer links */
footer a {
    color: var(--sunset-orange);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer menu */
.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.footer-menu a {
    font-size: 0.875rem;
    color: #d3d3d3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: white;
    text-decoration: underline;
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 3rem 1rem;
}

.error-404 h1 {
    font-size: 4rem;
    color: var(--sunset-orange);
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Homepage Styles */
.homepage {
    background: linear-gradient(135deg, var(--sunset-cream) 0%, #fefefe 100%);
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    padding: 80px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--sunset-orange);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hero-content {
    padding: 40px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-title a:hover {
    color: var(--sunset-orange);
}

.hero-excerpt {
    margin-bottom: 30px;
}

.hero-excerpt p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.hero-button {
    margin-top: 20px;
}

/* Random Posts Section */
.random-posts {
    padding: 40px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.posts-container {
    margin-top: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-left: 4px solid var(--sunset-amber);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--sunset-orange);
}

/* Blog Link */
.blog-link-container {
    text-align: center;
    margin-top: 40px;
}

.blog-link {
    background: var(--sunset-orange);
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--text-dark);
    transition: all 0.3s ease;
    text-transform: none;
    display: inline-block;
    text-decoration: none;
}

.blog-link:hover {
    background: var(--sunset-amber);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-dark);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .mosaic-large,
    .mosaic-medium,
    .mosaic-small,
    .mosaic-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-framed {
        margin: 16px;
    }

    .hero-content {
        padding: 32px 16px;
    }
    
    #top_menus {
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .post-item h3 {
        font-size: 1rem;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .page-content h1 {
        font-size: 1.35rem;
    }
    
    footer {
        padding: 1.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .footer-menu {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    /* Homepage mobile styles */
    .hero-section {
        padding: 40px 16px 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-image img {
        height: 250px;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-excerpt p {
        font-size: 1rem;
    }

    .random-posts {
        padding: 20px 16px 40px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-thumbnail img {
        height: 180px;
    }

    .blog-link {
        padding: 12px 30px;
        font-size: 1rem;
    }
}