/*
Theme Name: Tost Pizza Deluxe
Theme URI: https://tostpizza.com
Author: Pizza Creative Team
Description: A delicious theme for toast pizza lovers and culinary enthusiasts
Version: 1.0
Text Domain: tpz-theme
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tpz-bg-dark: #0a0a0a;
    --tpz-bg-card: #1a1a1a;
    --tpz-primary: #ff4d4d;
    --tpz-secondary: #ffa500;
    --tpz-accent: #ffd700;
    --tpz-cheese: #ffe4b5;
    --tpz-text: #ffffff;
    --tpz-text-muted: #b8b8b8;
    --tpz-border: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--tpz-bg-dark);
    color: var(--tpz-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--tpz-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tpz-secondary);
}

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

/* Header */
.tpz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tpz-border);
}

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

.tpz-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tpz-primary), var(--tpz-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.tpz-nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.tpz-nav-menu a {
    color: var(--tpz-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.05rem;
}

.tpz-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tpz-primary), var(--tpz-secondary));
    transition: width 0.3s ease;
}

.tpz-nav-menu a:hover::after {
    width: 100%;
}

.tpz-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.tpz-hamburger {
    width: 28px;
    height: 2px;
    background: var(--tpz-text);
    position: relative;
    transition: all 0.3s ease;
}

.tpz-hamburger::before,
.tpz-hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--tpz-text);
    transition: all 0.3s ease;
}

.tpz-hamburger::before {
    top: -8px;
}

.tpz-hamburger::after {
    top: 8px;
}

.tpz-mobile-toggle.active .tpz-hamburger {
    background: transparent;
}

.tpz-mobile-toggle.active .tpz-hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.tpz-mobile-toggle.active .tpz-hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.tpz-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10rem 2rem 6rem;
    background: linear-gradient(180deg, var(--tpz-bg-dark) 0%, #1a0f0a 100%);
}

.tpz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 77, 77, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tpz-hero-content {
    max-width: 1100px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tpz-hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--tpz-text), var(--tpz-primary), var(--tpz-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.tpz-hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--tpz-text-muted);
    max-width: 750px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* Intro Section with Image */
.tpz-intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.tpz-intro-text {
    text-align: left;
}

.tpz-intro-text .tpz-hero-subtitle {
    margin: 0;
}

.tpz-intro-image {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid var(--tpz-border);
    box-shadow: 0 20px 60px rgba(255, 77, 77, 0.3);
}

.tpz-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Images Grid Section */
.tpz-images {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
    margin-top: 5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tpz-image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tpz-border);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpz-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 77, 77, 0.3);
    border-color: var(--tpz-primary);
}

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

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

.tpz-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tpz-image-card:hover .tpz-image-overlay {
    transform: translateY(0);
}

.tpz-image-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--tpz-text);
}

.tpz-image-overlay p {
    font-size: 0.9rem;
    color: var(--tpz-text-muted);
}

/* Icons Section */
.tpz-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.tpz-icon-card {
    background: var(--tpz-bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--tpz-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tpz-icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 77, 77, 0.3);
    border-color: var(--tpz-primary);
}

.tpz-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.tpz-icon-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tpz-text);
    margin-bottom: 0.8rem;
}

.tpz-icon-desc {
    color: var(--tpz-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Main Content */
.tpz-main {
    padding-top: 80px;
}

.tpz-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.tpz-section {
    margin-bottom: 6rem;
}

.tpz-section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--tpz-primary), var(--tpz-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.tpz-section-subtitle {
    font-size: 1.3rem;
    color: var(--tpz-text-muted);
    margin-bottom: 4rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Posts Grid */
.tpz-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.tpz-post-card {
    background: var(--tpz-bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--tpz-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpz-post-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(255, 77, 77, 0.3);
    border-color: var(--tpz-primary);
}

.tpz-post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #ff4d4d, #ffa500);
}

.tpz-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tpz-post-card:hover .tpz-post-thumbnail img {
    transform: scale(1.08);
}

.tpz-post-category {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(255, 77, 77, 0.95);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpz-post-content {
    padding: 2rem;
}

.tpz-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tpz-post-title a {
    color: var(--tpz-text);
}

.tpz-post-title a:hover {
    color: var(--tpz-primary);
}

.tpz-post-excerpt {
    color: var(--tpz-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.tpz-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--tpz-text-muted);
}

/* Pagination */
.tpz-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.tpz-pagination a,
.tpz-pagination span {
    padding: 0.9rem 1.7rem;
    background: var(--tpz-bg-card);
    border: 1px solid var(--tpz-border);
    border-radius: 12px;
    color: var(--tpz-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tpz-pagination a:hover {
    background: var(--tpz-primary);
    border-color: var(--tpz-primary);
    transform: translateY(-3px);
}

.tpz-pagination .current {
    background: linear-gradient(135deg, var(--tpz-primary), var(--tpz-secondary));
    border-color: transparent;
}

/* Single Post */
.tpz-single-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.tpz-single-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.tpz-single-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--tpz-text-muted);
    margin-bottom: 2rem;
}

.tpz-single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.tpz-single-content p {
    margin-bottom: 1.5rem;
}

.tpz-single-content h2 {
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    color: var(--tpz-primary);
}

.tpz-single-content h3 {
    font-size: 1.7rem;
    margin: 2.5rem 0 1rem;
}

.tpz-single-content img {
    margin: 2.5rem 0;
    border-radius: 16px;
}

.tpz-single-content ul,
.tpz-single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.tpz-single-content li {
    margin-bottom: 0.7rem;
}

/* Footer */
.tpz-footer {
    background: var(--tpz-bg-card);
    border-top: 1px solid var(--tpz-border);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.tpz-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.tpz-footer-logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tpz-primary), var(--tpz-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.tpz-footer-text {
    color: var(--tpz-text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.tpz-footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tpz-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--tpz-border);
    color: var(--tpz-text-muted);
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tpz-header-container {
        padding: 1rem;
    }
    
    .tpz-nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .tpz-nav-menu.active {
        left: 0;
    }
    
    .tpz-nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--tpz-border);
    }
    
    .tpz-nav-menu a {
        display: block;
        padding: 1.5rem 0;
        width: 100%;
        font-size: 1.2rem;
    }
    
    .tpz-mobile-toggle {
        display: block;
    }
    
    .tpz-hero {
        padding: 7rem 1rem 4rem;
    }
    
    .tpz-container {
        padding: 3rem 1rem;
    }
    
    .tpz-intro-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tpz-intro-text {
        text-align: center;
    }
    
    .tpz-images {
        grid-template-columns: 1fr;
    }
    
    .tpz-icons {
        grid-template-columns: 1fr;
    }
    
    .tpz-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tpz-hero-title {
        font-size: 2.5rem;
    }
    
    .tpz-section-title {
        font-size: 2rem;
    }
    
    .tpz-single-title {
        font-size: 2rem;
    }
}
