/*
Theme Name: Cup Cakes
Author: Chaitali Prajapati
Author URI: https://profiles.wordpress.org/chaitali_1987
Description: Cup Cakes is a simple, classic WordPress blog theme with a clean white background, a sweet pink accent, and a cozy serif/sans-serif pairing. It supports a custom logo, threaded comments, a widgetized sidebar, and a primary navigation menu. Built with translation-ready, accessible, semantic HTML5 markup, Cup Cakes is a great starting point for a personal or small-business blog.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cup-cakes
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready

Cup Cakes is distributed under the terms of the GNU General Public License v2 (or later).
This program is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation, either
version 2 of the License, or (at your option) any later version.

Cup Cakes bundles Bootstrap 5 (CSS + JS bundle) locally under assets/css and assets/js
for its grid, navbar, and components, layered under the theme's own pink/cream branding.
It bundles no third-party fonts or icon sets. All other CSS, markup, and images are
original works created for this theme. See readme.txt and LICENSE-bootstrap.txt for details.
*/

/* -----------------------------------------------------------------------
   0. CSS Custom Properties
----------------------------------------------------------------------- */
:root {
	--cc-white: #ffffff;
	--cc-cream: #fff8f0;
	--cc-pink: #e8749a;
	--cc-pink-dark: #c9557c;
	--cc-brown: #4a3730;
	--cc-gray: #6d6560;
	--cc-border: #f0e3e8;
	--cc-max-width: 1100px;
	--cc-font-heading: Georgia, "Times New Roman", serif;
	--cc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -----------------------------------------------------------------------
   1. Reset & base
----------------------------------------------------------------------- */
html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

body {
	background-color: var(--cc-white);
	color: var(--cc-brown);
	font-family: var(--cc-font-body);
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
}

img,
svg,
video,
embed,
object,
iframe {
	max-width: 100%;
	height: auto;
}

select,
input,
textarea {
	max-width: 100%;
}

table {
	max-width: 100%;
	display: block;
	overflow-x: auto;
}

.widget,
.entry-content,
.entry-summary,
.textwidget {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

a {
	color: var(--cc-pink-dark);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--cc-pink);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cc-font-heading);
	color: var(--cc-brown);
	line-height: 1.3;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--cc-white);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--cc-brown);
	display: block;
	font-size: 0.9rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 10px 15px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* -----------------------------------------------------------------------
   2. Layout
----------------------------------------------------------------------- */
.site {
	background-color: var(--cc-white);
}

.site-content {
	padding: 0 0 40px;
}

/* -----------------------------------------------------------------------
   3. Header
----------------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 1000;
	border-bottom: 3px solid var(--cc-pink);
	background-color: var(--cc-white);
}

.navbar {
	padding: 20px 0;
}

.site-header-image img {
	width: 100%;
	height: auto;
	display: block;
}

.site-branding {
	gap: 16px;
	flex-wrap: wrap;
}

.custom-logo-link img {
	max-height: 72px;
	width: auto;
}

.site-title {
	font-size: 2rem;
	margin: 0;
	font-weight: 700;
}

.site-title a {
	color: var(--cc-brown);
}

.site-title a:hover {
	color: var(--cc-pink);
	text-decoration: none;
}

.site-description {
	margin: 4px 0 0;
	color: var(--cc-gray);
	font-style: italic;
	font-size: 0.95rem;
}

/* Primary navigation (structure/toggle handled by Bootstrap's navbar + collapse) */
.main-navigation li {
	position: relative;
}

.main-navigation li + li {
	margin-top: 4px;
}

.main-navigation a {
	display: inline-block;
	padding: 8px 4px;
	color: var(--cc-brown);
	font-weight: 600;
	letter-spacing: 0.02em;
}

@media (min-width: 992px) {
	.main-navigation li + li {
		margin-top: 0;
	}

	.main-navigation a {
		padding: 8px 16px;
	}
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--cc-pink-dark);
}

.main-navigation .sub-menu {
	list-style: none;
	padding-left: 16px;
}

@media (min-width: 992px) {
	.main-navigation .sub-menu {
		position: absolute;
		z-index: 1050;
		display: none;
		flex-direction: column;
		background: var(--cc-white);
		border: 1px solid var(--cc-border);
		padding: 8px 16px;
		min-width: 180px;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	}

	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu {
		display: flex;
	}
}

/* -----------------------------------------------------------------------
   4. Posts / entries
----------------------------------------------------------------------- */
.entry {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease;
	padding: 15px;
}

.entry:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

.entry-title {
	font-size: 1.7rem;
	margin: 0 0 8px;
}

.entry-title a {
	color: var(--cc-brown);
}

.entry-title a:hover {
	color: var(--cc-pink-dark);
	text-decoration: none;
}

.entry-meta {
	color: var(--cc-gray);
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.entry-meta a {
	color: var(--cc-gray);
}

.entry-thumbnail {
	margin-bottom: 16px;
	border-radius: 6px;
	overflow: hidden;
}

.entry-content p,
.entry-summary p {
	margin: 0 0 1.2em;
}

.entry-content a {
	text-decoration: underline;
}

.entry-footer {
	margin-top: 16px;
	font-size: 0.9rem;
	color: var(--cc-gray);
}

/* Bootstrap button in the theme's pink accent color */
.btn-pink {
	background-color: var(--cc-pink);
	border-color: var(--cc-pink);
	color: var(--cc-white);
	font-weight: 600;
}

.btn-pink:hover,
.btn-pink:focus {
	background-color: var(--cc-pink-dark);
	border-color: var(--cc-pink-dark);
	color: var(--cc-white);
}

.page-header .page-title,
.archive-title {
	border-bottom: 2px solid var(--cc-pink);
	padding-bottom: 12px;
	margin-bottom: 24px;
}
.page-numbers {
    padding: 5px;
}
.pagination,
.nav-links {
	display: flex;
	justify-content: space-between;
	margin: 32px 0;
	font-weight: 600;
}

.pagination a,
.nav-links a {
	color: var(--cc-pink-dark);
}

/* -----------------------------------------------------------------------
   5. Sidebar & widgets
----------------------------------------------------------------------- */
.widget-area .widget {
	background: var(--cc-cream);
	border: 1px solid var(--cc-border);
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 24px;
}

.widget-title {
	margin-top: 0;
	font-size: 1.1rem;
	border-bottom: 2px solid var(--cc-pink);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--cc-border);
}

.widget li:last-child {
	border-bottom: none;
}
ul.children {
    padding-left: 22px;
    list-style-type: circle;
    text-indent: inherit;
    font-size: 14px;
}
/* -----------------------------------------------------------------------
   6. Comments
----------------------------------------------------------------------- */
.comments-area {
	margin-top: 48px;
}

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

.comment-list .comment {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--cc-border);
}

.comment-list .children {
	list-style: none;
	margin: 16px 0 0 40px;
	padding: 0;
}

.comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-metadata {
	color: var(--cc-gray);
	font-size: 0.85rem;
}

.comment-form input.form-control,
.comment-form textarea.form-control {
	max-width: 500px;
	margin-bottom: 12px;
}

/* -----------------------------------------------------------------------
   7. Footer
----------------------------------------------------------------------- */
.site-footer {
	border-top: 3px solid var(--cc-pink);
	background-color: var(--cc-cream);
	padding: 32px 0;
	margin-top: 40px;
}

.footer-widgets {
	margin-bottom: 24px;
}

.site-info {
	color: var(--cc-gray);
	font-size: 0.9rem;
}

.site-info a {
	color: var(--cc-pink-dark);
}

/* -----------------------------------------------------------------------
   8. Alignment & block editor helpers
----------------------------------------------------------------------- */
.alignleft {
	float: left;
	margin: 0 20px 20px 0;
}

.alignright {
	float: right;
	margin: 0 0 20px 20px;
}

.aligncenter {
	display: block;
	margin: 0 auto 20px;
}

.alignwide {
	max-width: calc(var(--cc-max-width) + 200px);
}

.alignfull {
	max-width: 100%;
}

/* -----------------------------------------------------------------------
   9. WordPress core classes
----------------------------------------------------------------------- */
.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0 auto;
}

.wp-caption .wp-caption-text {
	margin: 0.5em 0;
}

.wp-caption-text {
	text-align: center;
	font-size: 0.85rem;
	color: var(--cc-gray);
}

.gallery-caption {
	text-align: center;
	font-size: 0.85rem;
	color: var(--cc-gray);
}

.sticky {
	border: 1px solid var(--cc-pink);
	box-shadow: 0 2px 10px rgba(232, 116, 154, 0.15);
}

.bypostauthor {
	display: block;
}

.bypostauthor > .comment-body {
	border-left: 3px solid var(--cc-pink);
	padding-left: 12px;
}

/* -----------------------------------------------------------------------
   10. Block styles (register_block_style variants)
----------------------------------------------------------------------- */
.is-style-pink-cupcake .wp-block-button__link {
	background-color: var(--cc-pink);
	color: var(--cc-white);
	border-radius: 30px;
	font-weight: 600;
}

.is-style-pink-cupcake .wp-block-button__link:hover {
	background-color: var(--cc-pink-dark);
}

.is-style-cupcake-dots {
	border: none;
	height: 1.5em;
	background-image: radial-gradient(circle, var(--cc-pink) 2px, transparent 2px);
	background-position: center;
	background-repeat: repeat-x;
	background-size: 16px 100%;
}
