/*
Theme Name: Anthem Creation
Theme URI: https://anthemcreation.com
Author: GILA / Antigravity
Author URI: https://anthemcreation.com
Description: Custom WordPress theme for Anthem Creation with modern design, Tailwind CSS, and advanced functionality.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anthem
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Tailwind CSS will be loaded via CDN in header.php for rapid development */
/* For production, compile Tailwind CSS and include it here */

/* Custom WordPress Admin Styles */
.admin-bar {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar {
        margin-top: 46px;
    }
}

/* ==========================================================================
   Article Content Styles (Prose)
   ========================================================================== */
.prose {
    color: #a1a1aa;
    /* text-gray-400 */
    line-height: 1.8;
    font-size: 1.125rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.prose h1 {
    font-size: 2.5rem;
}

.prose h2 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose h4 {
    font-size: 1.25rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.prose a:hover {
    border-bottom-color: var(--color-primary);
    opacity: 0.8;
}

.prose strong,
.prose b {
    color: #ffffff;
    font-weight: 700;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(to right, rgba(196, 58, 89, 0.1), transparent);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #e5e7eb;
    position: relative;
}

.prose blockquote::before {
    content: "“";
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose code {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prose pre {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: #e5e7eb;
    font-size: 0.9rem;
    border: none;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.prose th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.prose td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.prose tr:last-child td {
    border-bottom: none;
}

.prose img {
    border-radius: 1rem;
    margin: 3rem auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 4rem 0;
}

.prose cite {
    font-size: 0.9em;
    color: #71717a;
    display: block;
    margin-top: 1rem;
    font-style: normal;
}

.prose mark {
    background: rgba(196, 58, 89, 0.2);
    color: #ffffff;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
}

.prose kbd {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.25rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.8em;
    box-shadow: 0 2px 0 #18181b;
}

/* ==========================================================================
   MailPoet Sidebar Customization
   ========================================================================== */
.sidebar-mailpoet .mailpoet_form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Remove internal container constraints and borders */
.sidebar-mailpoet .mailpoet_paragraph {
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: normal !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    /* Ensure no box around fields */
}

/* Labels */
.sidebar-mailpoet .mailpoet_text_label,
.sidebar-mailpoet .mailpoet_segment_label {
    display: none !important;
}

/* Inputs */
.sidebar-mailpoet .mailpoet_text {
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.07) !important;
    /* Slightly lighter for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
    padding: 1rem 1.25rem !important;
    /* Taller and wider feel */
    color: #ffffff !important;
    /* Pure white text */
    font-size: 1.125rem !important;
    /* Larger text */
    line-height: 1.5 !important;
    transition: all 0.2s ease;
}

.sidebar-mailpoet .mailpoet_text::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    /* Readable placeholder */
}

.sidebar-mailpoet .mailpoet_text:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(196, 58, 89, 0.1);
}

/* Submit Button */
.sidebar-mailpoet .mailpoet_submit {
    width: 100% !important;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    /* Larger button */
    border-radius: 0.5rem !important;
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 12px rgba(196, 58, 89, 0.3);
}

.sidebar-mailpoet .mailpoet_submit:hover {
    opacity: 1 !important;
    background-color: #d64565 !important;
    /* Slightly lighter primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 58, 89, 0.4);
}

/* Success/Error Messages */
.sidebar-mailpoet .mailpoet_validate_success {
    color: #4ade80 !important;
    font-size: 1rem !important;
    font-weight: 500;
    margin-top: 1rem;
}

.sidebar-mailpoet .mailpoet_validate_error {
    color: #f87171 !important;
    font-size: 1rem !important;
    font-weight: 500;
    margin-top: 1rem;
}

/* ==========================================================================
   WPForms Customization & Anthem Contact Form
   ========================================================================== */

/* Container Reset */
.anthem-contact-form .wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Headings inside form (if any) */
.anthem-contact-form .wpforms-title {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

/* Labels */
.anthem-contact-form .wpforms-field-label {
    color: #a1a1aa !important;
    /* text-gray-400 */
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.anthem-contact-form .wpforms-field-label-inline {
    display: inline-block !important;
    margin-left: 0.5rem !important;
}

/* Inputs & Textareas */
.anthem-contact-form .wpforms-field input[type="text"],
.anthem-contact-form .wpforms-field input[type="email"],
.anthem-contact-form .wpforms-field input[type="number"],
.anthem-contact-form .wpforms-field input[type="url"],
.anthem-contact-form .wpforms-field select,
.anthem-contact-form .wpforms-field textarea {
    width: 100% !important;
    max-width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.anthem-contact-form .wpforms-field input:focus,
.anthem-contact-form .wpforms-field select:focus,
.anthem-contact-form .wpforms-field textarea:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(196, 58, 89, 0.1) !important;
}

.anthem-contact-form .wpforms-field input::placeholder,
.anthem-contact-form .wpforms-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Spacing between fields */
.anthem-contact-form .wpforms-field {
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    clear: both !important;
}

/* Submit Button Container */
.anthem-contact-form .wpforms-submit-container {
    padding-top: 1rem !important;
    margin: 0 !important;
    text-align: center !important;
    /* Centered */
}

/* Submit Button */
.anthem-contact-form button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    /* Not full width */
    min-width: 240px !important;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 1rem 3rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(196, 58, 89, 0.3) !important;
    margin-top: 2.5rem !important;
}

.anthem-contact-form button[type="submit"]:hover {
    background-color: #d64565 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(196, 58, 89, 0.4) !important;
}

/* Validation Errors */
div.wpforms-container-full .wpforms-form .wpforms-field-label.wpforms-error {
    color: #f87171 !important;
}

div.wpforms-container-full .wpforms-form input.wpforms-error,
div.wpforms-container-full .wpforms-form textarea.wpforms-error,
div.wpforms-container-full .wpforms-form select.wpforms-error {
    border-color: #f87171 !important;
    background-color: rgba(248, 113, 113, 0.05) !important;
}

label.wpforms-error {
    color: #f87171 !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
    display: block !important;
}

/* Checkboxes & Radios - Minimal Custom Style */
.anthem-contact-form .wpforms-field-checkbox ul,
.anthem-contact-form .wpforms-field-radio ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.anthem-contact-form .wpforms-field-checkbox li,
.anthem-contact-form .wpforms-field-radio li {
    margin: 0 !important;
    padding: 0.25rem 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
}

/* No Hover Backgrounds */
.anthem-contact-form .wpforms-field-checkbox li:hover,
.anthem-contact-form .wpforms-field-radio li:hover {
    background: none !important;
    border: none !important;
}

/* No Selected Backgrounds */
.anthem-contact-form .wpforms-field-checkbox li:has(input:checked),
.anthem-contact-form .wpforms-field-radio li:has(input:checked) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* The Invisible Click Overlay (Kept for good UX) */
.anthem-contact-form .wpforms-field-checkbox input,
.anthem-contact-form .wpforms-field-radio input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 10 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* The Label (Text) */
.anthem-contact-form .wpforms-field-checkbox li label,
.anthem-contact-form .wpforms-field-radio li label {
    padding-left: 2rem !important;
    /* Space for the visual box */
    cursor: pointer !important;
    color: #fff !important;
    font-weight: 500 !important;
    /* Slightly lighter weight */
    font-size: 1rem !important;
    letter-spacing: 0.02em !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    pointer-events: none !important;
    margin: 0 !important;
    display: block !important;
    border: none !important;
    background: none !important;
    opacity: 0.8 !important;
    /* Slightly dimmed by default */
    transition: opacity 0.2s ease !important;
}

/* Hover/Checked Text Highlight */
.anthem-contact-form .wpforms-field-checkbox li:hover label,
.anthem-contact-form .wpforms-field-checkbox li:has(input:checked) label {
    opacity: 1 !important;
}

/* Visual Checkbox Box (Pseudo-element on Label) */
.anthem-contact-form .wpforms-field-checkbox li label::before,
.anthem-contact-form .wpforms-field-radio li label::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

/* Visual Radio Circle */
.anthem-contact-form .wpforms-field-radio li label::before {
    border-radius: 50% !important;
}

/* Checked State - Box (using li:has) */
.anthem-contact-form .wpforms-field-checkbox li:has(input:checked) label::before,
.anthem-contact-form .wpforms-field-radio li:has(input:checked) label::before {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Checked State - Checkmark Icon */
.anthem-contact-form .wpforms-field-checkbox li label::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    width: 6px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: translateY(-65%) rotate(45deg) scale(0) !important;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.anthem-contact-form .wpforms-field-checkbox li:has(input:checked) label::after {
    transform: translateY(-65%) rotate(45deg) scale(1) !important;
}

/* Checked State - Radio Dot */
.anthem-contact-form .wpforms-field-radio li label::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
    transform: translateY(-50%) scale(0) !important;
    transition: all 0.2s ease !important;
}

.anthem-contact-form .wpforms-field-radio li:has(input:checked) label::after {
    transform: translateY(-50%) scale(1) !important;
}

/* Disclaimer Text (Small & Discreet) */
.anthem-contact-form .wpforms-field-html,
.anthem-contact-form .wpforms-submit-container+div,
.anthem-contact-form p.disclaimer {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 1.5rem !important;
    line-height: 1.4 !important;
    font-style: italic !important;
}

.anthem-contact-form .wpforms-field-html a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   Swiper Carousel Custom Styles
   ========================================================================== */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: #c43a59 !important;
    /* Brand Primary */
    width: 24px !important;
    /* Pill shape for active */
    border-radius: 5px !important;
    box-shadow: 0 0 10px rgba(196, 58, 89, 0.5);
}