/*
Theme Name: TiBlog Premium
Theme URI: https://example.com/tiblog-premium
Author: Antigravity
Author URI: https://example.com
Description: A very professional, modern, and attractive blog theme for WordPress. Features Bento grids, glassmorphism, and a sleek dark aesthetic.
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: tiblog-premium
Tags: blog, clean, modern, dark, responsive-layout, featured-images
*/

/*/* --- Design System: SaaS Premium --- */
:root {
    --bg-main: #fcfcfd;
    --bg-card: #ffffff;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation & Header --- */
.site-header {
    background: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.footer-logo-img {
    max-height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    filter: brightness(0) invert(1); /* Make it white for dark footer if needed, but the original has color */
}
/* Re-evaluating footer logo color: user image is colorful. I'll remove the filter if they want the original. */
.footer-logo-img {
    max-height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #475569; /* Slate 600 */
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #1e293b;
}

.main-navigation .accent-link {
    color: #4f46e5;
}

.btn-login {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* --- Modern Mesh Hero --- */
.blog-hero {
    background: radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0, transparent 50%), 
                radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0, transparent 50%);
    padding: 10rem 0;
    margin-bottom: 6rem;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: block; /* Centered layout */
}

.featured-badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.hero-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
    background: #1d4ed8;
}

.hero-image {
    display: none; /* Hide image in centered layout for ultra-clean look */
}

@media (max-width: 768px) {
    .blog-hero { padding: 6rem 0; }
    .hero-title { font-size: 2.75rem; }
}

.section-header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.75rem;
    color: var(--text-primary);
}

/* --- Blog Listing --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.post-thumbnail {
    height: 200px;
    background: #f1f5f9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.post-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* --- Single Post --- */
.single-post-content {
    max-width: 800px;
    margin: 4rem auto;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

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

/* --- Footer --- */
.site-footer {
    background: #060b16; /* Ultra dark navy */
    color: white;
    padding: 6rem 0 0;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-desc, .newsletter-desc {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.social-icon:hover {
    background: var(--accent);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-family: var(--font-main);
}

.newsletter-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 0;
    text-align: center;
    color: #475569;
    font-size: 0.875rem;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.float-btn:hover {
    transform: scale(1.1);
}

.scroll-top { background: white; color: #4f46e5; }
.whatsapp { background: #25d366; }

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; }
}
