/*
Theme Name: Phtoll Theme
Theme URI: https://phtoll.com
Author: Reuben
Author URI: https://phtoll.com
Description: Custom dark theme for motorcycle photography and gear reviews from the Philippines. Features orange (#FF6B35) and teal (#00C9A7) accents on a dark background.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phtoll
Tags: dark, motorcycle, photography, custom-colors, blog, two-columns, responsive-layout
*/

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

:root {
    --primary: #FF6B35;
    --accent: #00C9A7;
    --dark: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --text-gray: #b0b0b0;
    --border: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background: var(--dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent);
}

/* Header/Navigation */
.site-header {
    background: var(--dark-gray);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.site-logo span {
    color: var(--primary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.main-navigation a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background: #e55a25;
    color: white !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1f1f1f 100%);
    border-bottom: 1px solid var(--border);
    color: white;
    text-align: center;
    padding: 5rem 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #e55a25;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Section Styling */
section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.section-alt {
    background: var(--dark-gray);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

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

/* Card Styles */
.card {
    background: var(--dark-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.card-image {
    width: 100%;
    height: 220px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    overflow: hidden;
}

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

.card-content {
    padding: 1.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: white;
    font-weight: 600;
    line-height: 1.4;
}

.card-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

.card-excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--accent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 1px solid var(--border);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

/* Featured Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.photo-overlay p {
    font-size: 0.85rem;
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Blog Post Styles */
.post {
    margin-bottom: 3rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.entry-content {
    color: var(--text-gray);
    line-height: 1.8;
}

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

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Header Search Bar Styles - ADD TO style.css */

.header-search {
    margin-left: 2rem;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    width: 250px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--dark-gray);
    width: 300px;
}

.search-field::placeholder {
    color: var(--text-gray);
}

.search-submit {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.search-submit:hover {
    color: var(--primary);
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-search {
        margin-left: 1rem;
    }

    .search-field {
        width: 150px;
    }

    .search-field:focus {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .search-field {
        width: 100%;
    }

    .search-field:focus {
        width: 100%;
    }
}

/* Live Search Styles */
.search-loading,
.no-results,
.search-error {
    text-align: center;
    padding: 2rem;
    background: var(--dark-gray);
    border-radius: 8px;
    margin: 2rem 0;
}

.search-results-header {
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

#live-search-results .card-grid {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

    .site-content {
        padding: 2rem 1rem;
    }

    section {
        padding: 2rem 0;
    }
}
