/*
Theme Name: PnTutorials Theme
Author: Pradnyankur Nikam
Author URI: https://profiles.wordpress.org/phpsword/
Description: A custom WordPress theme for the PnTutorials website.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pntutorials-theme
*/

/* --- Root Variables (Phase 2: Modern & Vibrant) --- */
:root {
    --primary-color: #7209b7;
    --primary-hover: #5e0896;
    --accent-color: #4cc9f0;
    --secondary-color: #f72585;
    --bg-light: #ffffff;
    --text-color: #212529;
    --meta-color: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(114, 9, 183, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(114, 9, 183, 0.1), 0 4px 6px -2px rgba(114, 9, 183, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(114, 9, 183, 0.1), 0 10px 10px -5px rgba(114, 9, 183, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Styles --- */
body {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-hover);
}

/* --- Layout --- */
.container {
    max-width: 1240px;
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-title a {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.main-navigation .navbar-nav .nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 0.6rem 1.8rem !important;
    margin: 0 0.8rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: var(--transition);
}

.main-navigation .navbar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(114, 9, 183, 0.25);
}

/* --- Blog Cards --- */
.post-item {
    background: var(--white);
    padding: 0;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-item .p-content {
    padding: 2.5rem; /* Sufficient spacing */
}

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item:hover .post-image img {
    transform: scale(1.08); /* Image zoom on hover */
}

.post-title a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--meta-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.post-meta span i {
    color: var(--accent-color);
    margin-right: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px 0 rgba(67, 97, 238, 0.39);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.23);
    filter: brightness(1.1);
}

/* --- Sidebar --- */
.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    color: var(--secondary-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* --- Single Post Page --- */
.entry-title.display-4 {
    font-size: 2.8rem; /* Decreased 20% from 3.5rem */
    font-weight: 500 !important; /* Removed bold, using medium weight */
    letter-spacing: -1px;
}

.entry-title.display-5 {
    font-size: 2.4rem; /* Decreased 20% from 3rem */
    font-weight: 500 !important;
}

.entry-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.entry-content img:hover {
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

/* --- Comments --- */
.comments-area {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
.site-footer {
    background: var(--white);
    padding: 4rem 0;
    margin-top: 6rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
