<?php
/**
 * Main style.css - Improved contrast and global theme
 * @package Stanford_HAI_Child
 * @since 2.0.0
 */

/*
Theme Name: Prompts Homes Child
Theme URI: https://prompts.homes
Description: Child theme for Prompts Homes - AI Tools and Reviews
Author: Prompts Homes
Author URI: https://prompts.homes
Template: twentytwentyfive
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prompts-homes-child
*/

/* ========================================
   AI Tool Reviews - Improved Contrast Dark Theme
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0d1117;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 16px;
}

html.dark body {
    background-color: #0d1117;
    color: #e2e8f0;
}

/* Improved Contrast Colors */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1a1f2e;
    --bg-hover: #242c3e;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --primary: #1337ec;
    --primary-hover: #1d4aff;
    --primary-light: rgba(19, 55, 236, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #f8fafc;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #93c5fd;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

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

.max-w-1200 {
    max-width: 1200px;
    margin: 0 auto;
}

.text-primary { color: #e2e8f0; }
.text-secondary { color: #94a3b8; }
.text-muted { color: #64748b; }
.text-white { color: #ffffff; }

.bg-primary { background-color: #0d1117; }
.bg-secondary { background-color: #161b22; }
.bg-card { background-color: #1a1f2e; }
.bg-hover:hover { background-color: #242c3e; }

/* Tool Cards with Better Contrast */
.tool-card {
    background: #1a1f2e;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(19, 55, 236, 0.3);
    border-color: #1337ec;
}

.tool-card h3 {
    color: #f8fafc;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #1337ec;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 55, 236, 0.4);
}

.btn-secondary {
    background-color: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background-color: #334155;
    border-color: #475569;
}

/* Form Elements */
input, textarea, select {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1337ec;
    box-shadow: 0 0 0 3px rgba(19, 55, 236, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #64748b;
}

/* Header Styles */
.site-header {
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
}

.site-branding a {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.site-branding a:hover {
    color: #93c5fd;
}

.nav-menu a {
    color: #94a3b8;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.current {
    color: #f8fafc;
    background-color: rgba(19, 55, 236, 0.1);
}

/* Main Content Area */
.site-main {
    padding: 2rem 0;
    min-height: 80vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(19, 55, 236, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-description {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 600px;
    line-height: 1.75;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Featured Badge */
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(19, 55, 236, 0.2);
    color: #93c5fd;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.featured-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #1337ec;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: #1a1f2e;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #1337ec;
    box-shadow: 0 10px 30px -10px rgba(19, 55, 236, 0.2);
}

.category-card h4 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card span {
    color: #64748b;
    font-size: 0.75rem;
}

.category-card .material-symbols-outlined {
    color: #60a5fa;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Posts List */
.posts-list {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: #1a1f2e;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.post-card h2 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-card h2 a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: #93c5fd;
}

.post-card .post-meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}

.post-card .post-meta span {
    margin-right: 1rem;
}

.post-card .excerpt {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.post-card .read-more {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.post-card .read-more:hover {
    color: #93c5fd;
}

/* Sidebar */
.sidebar {
    background: #161b22;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.sidebar h3 {
    color: #f8fafc;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #334155;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #1e293b;
    transition: all 0.2s ease;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background-color: #1e293b;
    border-radius: 0.375rem;
    padding-left: 1rem;
}

.trending-rank {
    color: #334155;
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    min-width: 3rem;
}

.trending-item:hover .trending-rank {
    color: #1337ec;
}

.trending-info h4 {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trending-info span {
    color: #64748b;
    font-size: 0.75rem;
}

/* Footer */
.site-footer {
    background-color: #0a0e14;
    border-top: 1px solid #334155;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
}

.site-footer .footer-branding {
    color: #94a3b8;
    font-size: 0.875rem;
}

.site-footer .footer-links a {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: #f8fafc;
}

.site-footer .social-link {
    color: #64748b;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.site-footer .social-link:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-card {
    background: linear-gradient(135deg, #1337ec 0%, #1d4aff 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #ffffff;
}

.newsletter-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-card input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.newsletter-card input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-card button {
    background: #ffffff;
    color: #1337ec;
    font-weight: 700;
}

.newsletter-card button:hover {
    background: #f8fafc;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Responsive */
@media (min-width: 640px) {
    .grid-cols-sm-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    .hero-title { font-size: 3rem; }

    .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-md-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-md-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-lg-5 { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #1337ec;
    color: #ffffff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Utility Classes for Tailwind-like behavior */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.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-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }

.hidden { display: none; }
.block { display: block; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid #334155; }
.border-b { border-bottom: 1px solid #334155; }
.border-t { border-top: 1px solid #334155; }

.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }

.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

.overflow-hidden { overflow: hidden; }

.cursor-pointer { cursor: pointer; }

.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
