/*
Theme Name: TrendUpdate
Theme URI: https://trendupdate.in/
Author: Chhotelal Singh
Author URI: https://trendupdate.in/
Description: The TrendUpdate WordPress theme is lightning-fast and highly customizable. It features a premium, modern aesthetic suitable for tech, news, and creative portfolios.
Version: 5.0.0
Requires at least: 5.3
WC requires at least: 3.0
WC tested up to: 9.6
Tested up to: 6.9
Requires PHP: 5.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendupdate
Domain Path: /languages
Tags: custom-menu, custom-logo, entertainment, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
AMP: true
*/

/* ------------------------------------------------------------------------- *
 *  TrendUpdate Premium Design System
 * ------------------------------------------------------------------------- */

:root {
    /* -- Brand Colors -- */
    --tu-primary: #3b82f6;
    /* Vibrant Blue */
    --tu-secondary: #8b5cf6;
    /* Vibrant Purple */
    --tu-accent: #f43f5e;
    /* Rose */
    --tu-dark: #0f172a;
    /* Slate 900 */
    --tu-dark-lighter: #1e293b;
    /* Slate 800 */
    --tu-light: #f8fafc;
    /* Slate 50 */
    --tu-white: #ffffff;
    --tu-text-main: #334155;
    /* Slate 700 */
    --tu-text-muted: #64748b;
    /* Slate 500 */

    /* -- Gradients -- */
    --tu-gradient-primary: linear-gradient(135deg, var(--tu-primary) 0%, var(--tu-secondary) 100%);
    --tu-gradient-dark: linear-gradient(to bottom, var(--tu-dark), #111827);
    --tu-gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --tu-gradient-card: linear-gradient(to bottom right, #ffffff, #f8fafc);

    /* -- Typography -- */
    --tu-font-heading: 'Outfit', sans-serif;
    --tu-font-body: 'Inter', sans-serif;

    /* -- Shadows -- */
    --tu-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tu-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tu-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tu-shadow-neon: 0 0 20px rgba(59, 130, 246, 0.3);

    /* -- BorderRadius -- */
    --tu-radius-sm: 0.375rem;
    --tu-radius-md: 0.5rem;
    --tu-radius-lg: 1rem;
    --tu-radius-xl: 1.5rem;
    --tu-radius-full: 9999px;

    /* -- Transitions -- */
    --tu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ------------------------------------------------------------------------- *
 *  Base Styles
 * ------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tu-font-body);
    color: var(--tu-text-main);
    background-color: var(--tu-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--tu-font-heading);
    color: var(--tu-dark);
    font-weight: 700;
    margin-bottom: 0.75em;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--tu-primary);
    text-decoration: none;
    transition: var(--tu-transition);
}

a:hover {
    color: var(--tu-secondary);
}

/* ------------------------------------------------------------------------- *
 *  Layout Utilities
 * ------------------------------------------------------------------------- */

.tu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-content {
    padding: 4rem 0;
    min-height: 80vh;
}

/* ------------------------------------------------------------------------- *
 *  Components
 * ------------------------------------------------------------------------- */

/* Cards */
.tu-card,
article.post {
    background: var(--tu-white);
    border-radius: var(--tu-radius-lg);
    box-shadow: var(--tu-shadow-md);
    transition: var(--tu-transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tu-card:hover,
article.post:hover {
    transform: translateY(-8px);
    box-shadow: var(--tu-shadow-lg);
    z-index: 10;
}

/* Buttons */
.tu-btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--tu-radius-full);
    font-weight: 600;
    font-family: var(--tu-font-heading);
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: var(--tu-transition);
    border: none;
    background: var(--tu-gradient-primary);
    color: white !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tu-btn:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--tu-secondary) 0%, var(--tu-primary) 100%);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--tu-shadow-sm);
    transition: var(--tu-transition);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--tu-shadow-md);
}

.main-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-branding .site-title a {
    font-family: var(--tu-font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    background: var(--tu-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

/* Navigation */
.main-header-menu a {
    color: var(--tu-dark);
    font-weight: 600;
    font-family: var(--tu-font-body);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--tu-radius-md);
    transition: all 0.2s ease;
}

.main-header-menu a:hover {
    color: var(--tu-primary);
    background: rgba(59, 130, 246, 0.05);
}

/* Footer */
.site-footer {
    background: var(--tu-dark);
    color: var(--tu-light);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: var(--tu-white);
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: var(--tu-primary);
}

/* Blog Posts */
.post-thumb {
    border-radius: var(--tu-radius-lg) var(--tu-radius-lg) 0 0;
    overflow: hidden;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.tu-card:hover .post-thumb img,
article.post:hover .post-thumb img {
    transform: scale(1.05);
}

.entry-content {
    padding: 2rem;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--tu-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Pagination */
.ast-pagination .page-numbers {
    border: none;
    background: white;
    box-shadow: var(--tu-shadow-sm);
    color: var(--tu-dark);
    font-weight: 600;
    border-radius: var(--tu-radius-md);
    margin: 0 0.25rem;
    transition: var(--tu-transition);
}

.ast-pagination .page-numbers.current,
.ast-pagination .page-numbers:hover {
    background: var(--tu-gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Sidebar */
.widget {
    background: var(--tu-white);
    padding: 2rem;
    border-radius: var(--tu-radius-lg);
    box-shadow: var(--tu-shadow-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1.25rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--tu-gradient-primary);
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--tu-radius-md);
    font-family: var(--tu-font-body);
    transition: var(--tu-transition);
    background: #f8fafc;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--tu-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}