/* ABOUTME: Dark creative theme for photoshoptutorial.com */
/* ABOUTME: Photoshop-inspired dark UI with cyan accents */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --bg: #0d1117;
    --bg-surface: #161b22;
    --bg-elevated: #1c2128;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e6edf3;
    --text-muted: rgba(230, 237, 243, 0.55);
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
    --container: 1200px;
    --narrow: 780px;
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--body-font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--heading-font); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.85);
    z-index: 100;
    backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-logo .logo-ps {
    background: var(--accent);
    color: var(--bg);
    font-family: var(--mono-font);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: var(--text-muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }
.subscribe-btn { background: var(--accent); color: var(--bg) !important; padding: 0.5rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.subscribe-btn:hover { background: var(--accent-hover); color: var(--bg) !important; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 60%);
    border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero h1 .highlight { color: var(--accent); }
.hero-sub { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--bg); }

/* Post Grid */
.latest-posts, .post-list { padding: 4rem 0; }
.latest-posts h2 { margin-bottom: 2rem; }
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.post-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.3); }

.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 1.2rem; }
.post-category { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 600; }
.post-card h3 { margin: 0.5rem 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { font-size: 0.85rem; color: var(--text-muted); }

/* Single Post */
.post-single { padding: 2rem 0 4rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { margin: 0.5rem 0 1rem; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 1.5rem; }
.post-hero-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.post-content { font-size: 1.05rem; }
.post-content h2 { margin: 2rem 0 1rem; }
.post-content h3 { margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content ul, .post-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }
.post-content code {
    font-family: var(--mono-font);
    background: var(--bg-elevated);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}
.post-content pre code { background: none; padding: 0; }

/* Video embeds */
.post-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.post-cta {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 3rem 0 2rem;
}
.post-cta h3 { margin-bottom: 0.5rem; }
.post-cta p { color: var(--text-muted); margin-bottom: 1rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag { background: var(--bg-elevated); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; color: var(--text-muted); border: 1px solid var(--border); }

/* Page Header */
.page-header { padding: 3rem 0 1rem; }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
    text-align: center;
}
.cta-banner h2 { margin-bottom: 0.5rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-about p { color: var(--text-muted); margin-top: 0.5rem; }
.footer-links a { display: block; color: var(--text-muted); margin-top: 0.5rem; }
.footer-links a:hover { color: var(--accent); }
.footer-subscribe p { color: var(--text-muted); margin: 0.5rem 0 1rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { background: var(--bg-surface); border: 1px solid var(--border); padding: 2.5rem; border-radius: 12px; max-width: 440px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-content h2 { margin-bottom: 0.5rem; }
.modal-content > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.modal-content form { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-content input { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; background: var(--bg); color: var(--text); }
.modal-content input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.modal-fine-print { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0; }
.pagination li { list-style: none; }
.pagination a, .pagination .active a { padding: 0.5rem 1rem; border-radius: var(--radius); color: var(--text-muted); }
.pagination a:hover { color: var(--accent); }
.pagination .active a { background: var(--accent); color: var(--bg); }

/* Comments */
.comments-section { margin: 3rem 0 2rem; }
.comments-section h3 { margin-bottom: 1.5rem; }
.comment { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.comment-author { background: var(--bg-elevated); padding: 1rem; border-radius: 12px; margin: -0.5rem; padding-bottom: 1rem; border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.comment-meta strong { font-size: 0.95rem; }
.comment-meta time { font-size: 0.8rem; color: var(--text-muted); }
.comment-site { font-size: 0.8rem; opacity: 0.6; }
.author-badge { background: var(--accent); color: var(--bg); font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 10px; font-weight: 600; }
.comment p { font-size: 0.95rem; line-height: 1.6; margin: 0; }
.comment-form { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.comment-form h4 { margin-bottom: 1rem; }
.comment-form .form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"] { flex: 1; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; background: var(--bg); color: var(--text); }
.comment-form textarea { width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; resize: vertical; margin-bottom: 1rem; background: var(--bg); color: var(--text); box-sizing: border-box; }
.comment-form .btn { cursor: pointer; }
.comment-form .form-note { font-size: 0.85rem; color: var(--accent); margin-top: 0.5rem; }

/* About page */
.about-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    border: 2px solid var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-surface); padding: 1rem; border-bottom: 1px solid var(--border); }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2rem; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .comment-form .form-row { flex-direction: column; }
}
