/*
Theme Name: Yu Thumb Maker
Theme URI: https://yuthumb.com/yu-thumb-make
Author: OKi
Author URI: https://yuthumb.com
Description: A professional, modern WordPress theme designed for the Yu Thumb Maker tool.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuthum maker
*/

:root {
    /* Modern Professional Palette 2025 */
    --primary-color: #020617; /* Slate 950 - Deep Dark */
    --primary-light: #1e293b; /* Slate 800 */
    
    --accent-color: #4f46e5; /* Indigo 600 - Vibrant */
    --accent-hover: #4338ca; /* Indigo 700 */
    --accent-glow: rgba(79, 70, 229, 0.5);

    --background-color: #f8fafc; /* Slate 50 */
    --surface-color: #ffffff;
    
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --border-color: #e2e8f0; /* Slate 200 */

    /* Spacing & Layout */
    --container-width: 1280px; /* Wider container */
    --header-height: 80px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-heading: 'Space Grotesk', 'Outfit', system-ui, sans-serif;

    /* Modern Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Modern Card Design */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    letter-spacing: 0.01em;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px -1px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px var(--accent-glow);
    color: white;
}

/* Glassmorphism Header */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.custom-logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-smooth);
}

.site-branding:hover .custom-logo {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--primary-color);
}

/* Modern Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #cbd5e1; /* Slate 300 */
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    font-size: 0.95rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-branding h2 {
    color: white;
    font-size: 1.75rem;
}

.footer-links h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

/* Post Navigation */
.post-navigation-container {
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.nav-previous, .nav-next {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.nav-previous:hover, .nav-next:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.nav-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Related Posts */
.related-posts-section {
    margin-top: var(--spacing-xl);
}

.related-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.related-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.related-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0; /* Reset radius for card header */
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--primary-color);
}

.related-content h4 a:hover {
    color: var(--accent-color);
}

/* Page Hero */
.page-hero, .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e1b4b 100%);
    color: white;
    padding: 6rem 0 8rem;
    margin-bottom: -4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 8rem 0 6rem;
    margin-bottom: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Modern Form Styles */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--surface-color); /* Light text on dark hero */
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.form-control, .form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.col-half {
    flex: 1;
}

/* Custom Select Dropdown styling tweaks */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-select option {
    background-color: var(--primary-color);
    color: white;
}

/* Button Block Override */
.btn-block {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Latest Posts Section adjustment */
.latest-posts-section {
    padding-bottom: var(--spacing-xl);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .main-navigation ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }
}