/*
Theme Name: Nikhil Creation Photography
Theme URI: https://nikhilcreation.com/
Author: Nikhil More
Author URI: https://nikhilcreation.com/
Description: A clean and elegant photography portfolio theme inspired by Nikhil Creation. Features a fixed sidebar navigation, grid-based portfolio layout, and responsive design perfect for photographers, artists, and creative professionals.
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: nikhilcreation
Tags: photography, portfolio, grid-layout, responsive, sidebar, custom-menu, featured-images
*/

/* ================================
   CSS Variables
   ================================ */
:root {
    --primary-color: #1a3a5c;
    --secondary-color: #2c5282;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e5e5;
    --sidebar-width: 280px;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', Times, serif;
    --transition: all 0.3s ease;
}

/* ================================
   Reset & Base Styles
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style: none;
}

/* ================================
   Layout Structure
   ================================ */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.site-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 30px 25px;
}

/* Main Content */
.site-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

/* ================================
   Logo
   ================================ */
.site-logo {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.site-logo a {
    display: inline-block;
}

.logo-image {
    max-width: 180px;
    height: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ================================
   Navigation Menu
   ================================ */
.main-navigation {
    margin-bottom: 30px;
}

.main-navigation ul {
    list-style: none;
}

.main-navigation li {
    margin-bottom: 5px;
}

.main-navigation a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--primary-color);
    padding-left: 10px;
    border-bottom-color: var(--border-color);
}

/* Menu Categories */
.menu-category {
    margin-top: 20px;
}

.menu-category-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

/* Sub-menu */
.main-navigation .sub-menu {
    padding-left: 15px;
    margin-top: 5px;
}

.main-navigation .sub-menu li {
    margin-bottom: 3px;
}

.main-navigation .sub-menu a {
    font-size: 12px;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 5px 0;
}

.main-navigation .sub-menu a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    padding: 80px 40px 60px;
    text-align: center;
    background-color: var(--bg-light);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 300;
}

/* ================================
   Portfolio Grid
   ================================ */
.portfolio-section {
    padding: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 92, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 20px;
}

/* Full width item */
.portfolio-item.full-width {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

/* ================================
   Footer
   ================================ */
.site-footer {
    padding: 30px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-copyright a {
    color: var(--text-muted);
}

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

/* ================================
   Page & Post Styles
   ================================ */
.page-header,
.entry-header {
    padding: 60px 40px 40px;
    text-align: center;
    background-color: var(--bg-light);
}

.page-title,
.entry-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-content,
.entry-content {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content p,
.entry-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.page-content h2,
.entry-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content h3,
.entry-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

/* ================================
   Gallery Styles
   ================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ================================
   Contact Form
   ================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* ================================
   Buttons
   ================================ */
.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.button:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.button-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ================================
   Cookie Banner
   ================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    font-size: 13px;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-button {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-button.accept {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
}

.cookie-button.accept:hover {
    background-color: var(--secondary-color);
}

.cookie-button.decline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cookie-button.decline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ================================
   Scroll to Top
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* ================================
   Responsive Design
   ================================ */
@media screen and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item.full-width {
        grid-column: span 1;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .site-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .site-main {
        margin-left: 0;
    }
    
    .site-wrapper {
        flex-direction: column;
    }
    
    .hero-section {
        padding: 50px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .portfolio-section {
        padding: 15px;
    }
    
    .page-content,
    .entry-content {
        padding: 25px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        left: 0;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        margin: 0 auto 20px;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: var(--transition);
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block !important;
    }
}

/* ================================
   WordPress Default Styles
   ================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   Pagination
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ================================
   Breadcrumbs
   ================================ */
.breadcrumbs {
    padding: 20px 40px;
    font-size: 12px;
    color: var(--text-muted);
    background-color: var(--bg-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

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

.breadcrumbs .separator {
    margin: 0 8px;
}

/* ================================
   Comments
   ================================ */
.comments-area {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.comments-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   Widgets
   ================================ */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    font-size: 13px;
}

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