/*
Theme Name: King Solomon Scrolls
Theme URI: https://kingsolomonscrolls.com
Author: King Solomon Scrolls Team
Author URI: https://kingsolomonscrolls.com
Description: A premium dark WordPress theme with gold accents for King Solomon Scrolls, featuring elegant styling optimized for wisdom content and automated blog publishing.
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: king-solomon-scrolls
Tags: blog, dark, custom-colors, custom-logo, custom-menu, featured-images, full-width-template
*/

/* ============================================
   KING SOLOMON SCROLLS - TRUE BRAND COLORS
   ============================================ */
:root {
    --bg: #070A12;
    --panel: #0B1020;
    --panel2: #111827;
    --gold: #D4AF37;
    --gold2: #FFD700;
    --ink: #F5F5DC;
    --muted: #AEB6D6;
    --line: rgba(212,175,55,.45);
    --line2: rgba(148,163,184,.25);
    --shadow: 0 20px 50px rgba(0,0,0,.6);
    --radius: 24px;
    --radius2: 18px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(1200px 600px at 20% -20%, rgba(212,175,55,.15), transparent 70%),
                radial-gradient(1000px 500px at 90% 20%, rgba(124,58,237,.12), transparent 65%),
                linear-gradient(180deg, var(--bg), #05060b 80%);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--gold2);
}

a {
    color: var(--gold);
    transition: color 0.3s, opacity 0.3s;
    text-decoration: none;
}

a:hover {
    color: var(--gold2);
    opacity: 0.9;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ============================================
   BUTTONS - TRUE KING SOLOMON STYLE
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: var(--panel);
    box-shadow: 0 15px 35px rgba(212,175,55,.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(212,175,55,.6);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(11,16,32,.6);
    border: 2px solid var(--line2);
    color: var(--ink);
}

.btn-secondary:hover {
    background: rgba(212,175,55,.15);
    border-color: var(--gold);
}

/* ============================================
   CARDS & PANELS - DARK LUXURIOUS STYLE
   ============================================ */
.post-card {
    background: linear-gradient(180deg, rgba(11,16,32,.9), rgba(17,24,39,.9));
    border: 2px solid var(--line2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 25px 60px rgba(0,0,0,.65);
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--line);
}

.post-content {
    padding: 30px;
}

.post-title {
    font-size: 1.8em;
    color: var(--gold2);
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: var(--gold2);
    text-decoration: none;
    transition: color 0.3s;
}

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

.post-excerpt {
    font-size: 1.1em;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.95;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--muted);
    flex-wrap: wrap;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 15px;
    color: var(--gold2);
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

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

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

.wp-caption {
    max-width: 100%;
}

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

.gallery {
    margin-bottom: 20px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 10px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================================
   PAGINATION - DARK STYLE
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    background: rgba(11,16,32,.8);
    border: 2px solid var(--line2);
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: var(--panel);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,175,55,.4);
}

.pagination .current {
    border-color: var(--gold);
}

/* ============================================
   FORMS - DARK STYLE
   ============================================ */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--line2);
    border-radius: 14px;
    background: rgba(7,10,18,.9);
    color: var(--ink);
    font-size: 16px;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0,0,0,.3);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,.25), inset 0 2px 8px rgba(0,0,0,.3);
    transform: translateY(-2px);
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

/* ============================================
   BLOCKQUOTES - SCRIPTURE STYLE
   ============================================ */
blockquote {
    border-left: 4px solid var(--gold);
    background: linear-gradient(to right, rgba(212,175,55,.08), transparent);
    padding: 30px 30px 30px 40px;
    margin: 40px 0;
    font-size: 1.2em;
    font-style: italic;
    color: var(--ink);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

blockquote cite {
    display: block;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--gold);
    font-style: normal;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 968px) {
    .section {
        padding: 50px 0;
    }

    h1 {
        font-size: clamp(2em, 6vw, 3em);
    }

    h2 {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }

    .btn {
        padding: 15px 30px;
        font-size: 14px;
    }

    .post-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .post-image {
        height: 200px;
    }

    .post-content {
        padding: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="search"],
    textarea {
        padding: 14px 18px;
    }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */
::selection {
    background: rgba(212,175,55,.3);
    color: var(--gold2);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold2));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold2);
}

/* ============================================
   WIDGET STYLES - Recent Comments & Popular Posts
   ============================================ */

/* Recent Comments Widget */
.recent-wisdom-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-wisdom-comments li {
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(7,10,18,.6);
    border: 2px solid var(--line2);
    border-radius: var(--radius2);
    transition: all 0.3s;
}

.recent-wisdom-comments li:hover {
    background: rgba(212,175,55,.08);
    border-color: var(--gold);
    transform: translateX(5px);
}

.recent-wisdom-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.recent-wisdom-comments .comment-author img {
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.recent-wisdom-comments .comment-author strong {
    color: var(--gold2);
    font-weight: 700;
}

.recent-wisdom-comments .comment-excerpt {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.recent-wisdom-comments .comment-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.recent-wisdom-comments .comment-link:hover {
    color: var(--gold2);
}

/* Popular Posts Widget */
.popular-wisdom-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-wisdom-posts li {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(7,10,18,.6);
    border: 2px solid var(--line2);
    border-radius: var(--radius2);
    transition: all 0.3s;
    display: flex;
    gap: 15px;
    align-items: center;
}

.popular-wisdom-posts li:hover {
    background: rgba(212,175,55,.08);
    border-color: var(--gold);
    transform: translateX(5px);
}

.popular-wisdom-posts .popular-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius2);
    overflow: hidden;
    border: 2px solid var(--line);
}

.popular-wisdom-posts .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-wisdom-posts li:hover .popular-post-thumb img {
    transform: scale(1.1);
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-content a {
    color: var(--gold2);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.popular-post-content a:hover {
    color: var(--gold);
}

.popular-post-content .post-views {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-post-content .post-views::before {
    content: '👁️';
}

/* Widget Titles */
.widget-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.6em;
    color: var(--gold2);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--line);
}

/* Sidebar Widgets Container */
.sidebar .widget {
    background: rgba(11,16,32,.8);
    border: 2px solid var(--line2);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.sidebar .widget:hover {
    border-color: var(--line);
}

/* Footer Widgets */
.footer-widgets .widget {
    margin-bottom: 40px;
}

.footer-widgets .widget-title {
    color: var(--gold2);
    font-size: 1.4em;
    margin-bottom: 20px;
}

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

.footer-widgets .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line2);
}

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

.footer-widgets .widget ul li a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widgets .widget ul li a:hover {
    color: var(--gold2);
}

/* Responsive Widget Styles */
@media (max-width: 768px) {
    .popular-wisdom-posts li {
        flex-direction: column;
        text-align: center;
    }

    .popular-wisdom-posts .popular-post-thumb {
        width: 100%;
        height: 150px;
    }

    .sidebar .widget {
        padding: 20px;
    }
}
