/*
 Theme Name: PremKahani Pro
 Theme URI: https://premkahani.example.com/
 Author: ChatGPT
 Description: A professional romantic stories & clean adult jokes theme for Indian audiences with slider, dark mode, sidebar & AMP support.
 Version: 1.0
 Text Domain: premkahani-pro
*/

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #222222;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

body.dark-mode {
    background-color: #0f1115;
    color: #f2f2f2;
}

a {
    color: #FF4F7B;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.site-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
}

body.dark-mode .site-header {
    background: rgba(10,10,14,0.96);
    border-bottom-color: #222632;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a {
    text-decoration: none;
    color: #A11238;
    font-size: 26px;
    font-weight: 700;
}

body.dark-mode .site-title a {
    color: #ff9fb5;
}

.site-tagline {
    font-size: 12px;
    color: #777;
}

.dark-mode-toggle {
    border-radius: 999px;
    border: 1px solid #ddd;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    background: #ffffff;
}

body.dark-mode .dark-mode-toggle {
    background: #1d222f;
    border-color: #444a5a;
    color: #f2f2f2;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-navigation a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    font-size: 15px;
}

body.dark-mode .main-navigation a {
    color: #f2f2f2;
}

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

/* Hero section */
.hero {
    padding: 60px 16px 40px;
    background: linear-gradient(135deg, #FF4F7B, #A11238);
    text-align: center;
    color: #fff;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: 34px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons a {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #fff;
}

.hero-buttons a.hero-primary {
    background-color: #fff;
    color: #A11238;
}

.hero-buttons a.hero-secondary {
    background-color: transparent;
    color: #fff;
}

.hero-buttons a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Featured slider */
.featured-slider {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 16px 10px;
}

.featured-slider-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.featured-track {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #FFF5F7;
}

body.dark-mode .featured-track {
    background: #1b1f2b;
}

.featured-slide {
    display: none;
    padding: 16px 18px 18px;
}

.featured-slide.active {
    display: block;
}

.featured-slide h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 18px;
}

.featured-slide .meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

body.dark-mode .featured-slide .meta {
    color: #ccc;
}

.featured-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px 4px;
}

.featured-controls button {
    border-radius: 999px;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
    background: #FF4F7B;
    color: #fff;
}

.featured-dots {
    display: flex;
    gap: 6px;
}

.featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ccc;
    cursor: pointer;
}

.featured-dot.active {
    background: #FF4F7B;
}

/* Main container & sidebar layout */
.site-main-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 24px;
}

.site-main-full {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

@media (max-width: 900px) {
    .site-main-wrap {
        grid-template-columns: 1fr;
    }
}

/* Section headings */
.section-title {
    margin-top: 32px;
    margin-bottom: 18px;
    font-size: 24px;
}

/* Grid for stories */
.romantic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.post-card {
    background: #FFF5F7;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .post-card {
    background: #181c27;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.post-card .thumb img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin-bottom: 10px;
}

.post-card .entry-title {
    font-size: 18px;
    margin: 6px 0;
}

.post-card .meta {
    font-size: 13px;
    color: #777777;
    margin-bottom: 10px;
}

body.dark-mode .post-card .meta {
    color: #c0c0c0;
}

.post-card .excerpt {
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 10px;
}

.post-card .read-more {
    font-size: 14px;
    font-weight: 600;
}

/* Jokes list */
.jokes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.joke-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

body.dark-mode .joke-item {
    background: #161924;
    box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

.joke-item .entry-title {
    font-size: 17px;
    margin-bottom: 6px;
}

.joke-item .meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

body.dark-mode .joke-item .meta {
    color: #c0c0c0;
}

/* Category cards */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.category-card {
    background: #FFF5F7;
    padding: 18px 16px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .category-card {
    background: #1a1f2b;
    box-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.category-card a {
    text-decoration: none;
    font-weight: 600;
    color: #A11238;
}

body.dark-mode .category-card a {
    color: #ff9fb5;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Sidebar */
.sidebar {
    font-size: 14px;
}

.sidebar .widget {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 14px;
    background: #f8f8fb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

body.dark-mode .sidebar .widget {
    background: #181c27;
    box-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.sidebar .widget-title {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Breadcrumbs */
.breadcrumb-wrap {
    font-size: 13px;
    margin: 12px 0 10px;
}

.breadcrumb-wrap a {
    color: #777;
}

body.dark-mode .breadcrumb-wrap a {
    color: #ccc;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 24px 12px;
    font-size: 14px;
    color: #777777;
    border-top: 1px solid #eee;
}

body.dark-mode .site-footer {
    border-top-color: #222632;
    color: #bfbfbf;
}

/* Single post */
.single .entry-title {
    font-size: 28px;
    margin-bottom: 6px;
}

.post-meta {
    font-size: 13px;
    color: #777777;
    margin-bottom: 16px;
}

body.dark-mode .post-meta {
    color: #bbbbbb;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 14px;
}

/* Submission form */
.pk-form {
    max-width: 640px;
}

.pk-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.pk-form input[type="text"],
.pk-form input[type="email"],
.pk-form select,
.pk-form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
}

body.dark-mode .pk-form input[type="text"],
body.dark-mode .pk-form input[type="email"],
body.dark-mode .pk-form select,
body.dark-mode .pk-form textarea {
    background: #11131b;
    border-color: #3a4153;
    color: #f2f2f2;
}

.pk-form button[type="submit"] {
    border-radius: 999px;
    border: none;
    padding: 8px 22px;
    cursor: pointer;
    background: #FF4F7B;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* AMP minimal */
.amp-body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #222;
    padding: 16px;
}

@media (max-width: 600px) {
    .hero {
        padding: 40px 12px 30px;
    }
    .hero h1 {
        font-size: 26px;
    }
}


.post-meta {
    margin: 10px 0 15px;
    font-size: 14px;
    color: #555;
}

.post-meta span {
    margin-right: 15px;
}


/* PREMIUM COMMENT SECTION — PREM KAHANI PRO */

.comments-area {
    margin-top: 40px;
    padding: 24px;
    background: #FFF5F7;
    border-radius: 20px;
    box-shadow: 0 4px 22px rgba(255, 79, 123, 0.08);
}

body.dark-mode .comments-area {
    background: #181c27;
    box-shadow: 0 4px 22px rgba(0,0,0,0.5);
}

.comments-area h2 {
    margin-top: 0;
    font-size: 22px;
    color: #A11238;
    font-weight: 700;
}

body.dark-mode .comments-area h2 {
    color: #ff9fb5;
}


.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #A11238;
}

body.dark-mode .comment-author {
    color: #ff9fb5;
}

/* Avatar */
.comment-author img {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #FF4F7B;
}

/* Admin Badge */
.comment-author .says:after {
    content: "Admin 🛡️";
    margin-left: 8px;
    background: #FF4F7B;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 6px;
}


.comment-metadata {
    font-size: 12px;
    margin-top: -4px;
    color: #777;
}

body.dark-mode .comment-metadata {
    color: #ddd;
}


.comment-content {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}


.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    background: linear-gradient(135deg, #FF4F7B, #A11238);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(255,79,123,0.25);
    transition: 0.2s ease;
}

.comment-reply-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(255,79,123,0.35);
}


.children {
    margin-left: 28px;
    border-left: 3px solid #FF4F7B;
    padding-left: 18px;
    border-radius: 12px;
}

body.dark-mode .children {
    border-left-color: #ff9fb5;
}


.comment-respond {
    margin-top: 30px;
}

.comment-respond h3 {
    font-size: 20px;
    margin-bottom: 14px;
    color: #A11238;
}

body.dark-mode .comment-respond h3 {
    color: #ff9fb5;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 12px;
    background: #ffffff;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form textarea {
    background: #11131b;
    border-color: #3a4153;
    color: #fff;
}

/* Submit Button Premium Gradient */
.comment-form input[type="submit"] {
    background: linear-gradient(135deg, #FF4F7B, #A11238);
    border: none;
    color: white;
    padding: 10px 26px;
    font-size: 15px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255,79,123,0.25);
    transition: 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,79,123,0.35);
}
.pk-comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 14px;
}

.pk-like-btn {
    background: #FFF5F7;
    padding: 6px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(255,79,123,0.12);
    transition: 0.2s;
}

.pk-like-btn:hover {
    background: #FF4F7B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255,79,123,0.3);
}

body.dark-mode .pk-like-btn {
    background: #1d1f29;
    box-shadow: 0 2px 12px rgba(255,79,123,0.3);
}

body.dark-mode .pk-like-btn:hover {
    background: #FF4F7B;
    color: #fff;
}


.pk-like-btn {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, #FF4F7B, #A11238);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 16px rgba(255,79,123,0.3);
    transition: 0.2s ease;
}

.pk-like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,79,123,0.45);
}

body.dark-mode .pk-like-btn {
    box-shadow: 0 3px 16px rgba(255,79,123,0.5);
}


/* ===== FLOATING HEART ANIMATION ===== */

.pk-heart {
    position: absolute;
    color: #FF4F7B;
    font-size: 24px;
    pointer-events: none;
    animation: pk-float 1.2s ease-out forwards;
    opacity: 0.9;
    z-index: 99;
    text-shadow: 0 0 12px rgba(255,79,123,0.6);
}

@keyframes pk-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) scale(1.4);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-80px) scale(1);
        opacity: 0;
    }
}

body.dark-mode .pk-heart {
    color: #ff9fb5;
    text-shadow: 0 0 14px rgba(255,159,181,0.7);
}


/* Featured Image Styling */
.pk-featured-img {
    margin: 16px 0 22px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.pk-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

body.dark-mode .pk-featured-img {
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}


.category-card {
    background: #FFF5F7;
    padding: 14px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,79,123,0.25);
}

.category-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
}

.cat-title {
    font-size: 16px;
    font-weight: 600;
    color: #A11238;
}

body.dark-mode .cat-title {
    color: #ff9fb5;
}


.cat-views {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

body.dark-mode .cat-views {
    color: #cfcfcf;
}
