/*
Theme Name: AchieveAI
Theme URI: https://outsourceai.io
Author: OutsourceAI
Author URI: https://outsourceai.io
Description: Custom theme for AchieveAI
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aideveloper
*/

/*** Custom Styling Here ***/

@import url('./blog-dark.css');

/* === LOGIN PAGE STYLING === */
/* Matching the design system from optin.php and affiliatehub.css */

:root {
    --primary-bg: #0d1117;
    --card-bg: rgba(18, 23, 34, 0.6);
    --border-color: rgba(77, 124, 254, 0.2);
    --text-primary: #e7ecff;
    --text-secondary: rgba(148, 163, 184, 0.7);
    --accent-blue: #4D7CFE;
    --button-gradient: linear-gradient(to right, #3b4fd8, #0692d0);
    --input-bg: rgba(15, 23, 42, 0.5);
}

/* Font Definitions */
@font-face {
    font-family: 'Minisystem';
    src: url('./minisystem.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Page Background */
body {
    background: var(--primary-bg) !important;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* Page Container */
.max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 10;
}

/* Page Content Container */
.page-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4D7CFE, #8AABFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Minisystem', 'Inter', system-ui, -apple-system, sans-serif;
    text-shadow: 0 0 20px rgba(77, 124, 254, 0.3);
}

/* Prose Styling Override */
.prose {
    color: var(--text-primary);
    max-width: none;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.prose-invert {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .max-w-4xl {
        padding: 0.5rem 0.75rem;
    }
    
    .page-content {
        padding: 0.875rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 0.375rem;
    }
    
    .affwp-form {
        max-width: 100%;
    }
    
    .affwp-form p {
        margin-bottom: 0.625rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 0.75rem 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .affwp-form input[type="text"],
    .affwp-form input[type="password"],
    .affwp-form input[type="email"],
    .affwp-form input[type="url"],
    .affwp-form textarea,
    .affwp-form .button,
    .affwp-form input[type="submit"] {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .affwp-form p {
        margin-bottom: 0.5rem;
    }
}

/* === CUSTOM CURSOR ENHANCEMENTS === */
/* Custom cursor styles for premium user experience */

/* Base cursor for the entire page */
body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='2' fill='%234D7CFE'/%3E%3C/svg%3E") 12 12, auto;
    padding-top: 0 !important;
}

/* Custom pointer cursor for links and buttons */
a:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
.cta-button:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2L14 8L20 10L14 12L12 18L10 12L4 10L10 8L12 2Z' fill='%2300ffa2'/%3E%3Ccircle cx='12' cy='10' r='3' fill='%234D7CFE'/%3E%3C/svg%3E") 12 10, pointer;
}

/* Custom cursor for clickable elements */
[role="button"]:hover,
.clickable:hover,
.cursor-pointer:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2L14 8L20 10L14 12L12 18L10 12L4 10L10 8L12 2Z' fill='%2300ffa2'/%3E%3Ccircle cx='12' cy='10' r='3' fill='%234D7CFE'/%3E%3C/svg%3E") 12 10, pointer;
}

/* Custom cursor for input fields */
input:focus,
textarea:focus,
select:focus {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='6' y='10' width='12' height='2' fill='%234D7CFE'/%3E%3Crect x='10' y='6' width='2' height='12' fill='%234D7CFE'/%3E%3C/svg%3E") 12 12, text;
}

/* Custom cursor for text selection */
::selection {
    background: rgba(77, 124, 254, 0.2);
    color: #e7ecff;
}

::-moz-selection {
    background: rgba(77, 124, 254, 0.2);
    color: #e7ecff;
}

/* Custom cursor for loading states */
.loading,
.loading * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4V2M12 22V20M4 12H2M22 12H20M5.5 5.5L4 4M19 19L17.5 17.5M5.5 18.5L4 20M19 5L17.5 6.5' stroke='%234D7CFE' stroke-width='2'/%3E%3C/svg%3E") 12 12, wait;
}

/* Custom cursor for disabled elements */
button:disabled,
input:disabled,
textarea:disabled,
.affwp-form input:disabled {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%23666' stroke-width='2'/%3E%3Cpath d='M8 8L16 16' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E") 12 12, not-allowed;
}

/* Custom cursor for help/tooltips */
[title]:hover,
.help:hover,
.tooltip:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8' r='3' fill='%234D7CFE'/%3E%3Crect x='10' y='12' width='4' height='8' fill='%234D7CFE'/%3E%3C/svg%3E") 12 8, help;
}

/* Custom cursor for zoom elements */
.zoom:hover,
.magnify:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='8' stroke='%234D7CFE' stroke-width='2'/%3E%3Ccircle cx='11' cy='11' r='3' fill='%234D7CFE'/%3E%3Cpath d='M19 19L16 16' stroke='%234D7CFE' stroke-width='2'/%3E%3C/svg%3E") 11 11, zoom-in;
}

/* Custom cursor for drag elements */
[draggable="true"]:hover,
.drag-handle:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 8L16 16M16 8L8 16' stroke='%234D7CFE' stroke-width='2'/%3E%3C/svg%3E") 12 12, move;
}

/* Custom cursor for logo sections with hover effects */
.logos-container:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%234D7CFE' stroke-width='2'/%3E%3Cpath d='M8 12L12 16L16 8' stroke='%2300ffa2' stroke-width='2'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Custom cursor for FAQ accordion toggles */
.faq-toggle:hover,
.accordion-toggle:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 8V16M8 12H16' stroke='%2300ffa2' stroke-width='2'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Smooth cursor transitions */
* {
    cursor: inherit;
    transition: all 0.2s ease;
}

/* Custom cursor animations */
@keyframes cursor-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cursor-pulse:hover {
    animation: cursor-pulse 1.5s ease-in-out infinite;
}

/* Responsive cursor adjustments */
@media (max-width: 768px) {
    body {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%234D7CFE'/%3E%3C/svg%3E") 10 10, auto;
    }

    a:hover,
    button:hover,
    input[type="submit"]:hover,
    .button:hover,
    .cta-button:hover {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 2L12 8L18 10L12 12L10 18L8 12L2 10L8 8L10 2Z' fill='%2300ffa2'/%3E%3Ccircle cx='10' cy='8' r='2.5' fill='%234D7CFE'/%3E%3C/svg%3E") 10 8, pointer;
    }
}

/* Post Content Typography */
.post-content p {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

figure.achv-quote-wrapper p {
    margin-bottom: 0px !important;
}

/* Post Content Images — light theme only */
.post-content img {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover {
    transform: translateY(-2px);
}

/* === HEADER ADJUSTMENTS === */
/* Reset body padding since new header is not fixed */
main,
.main-content,
.page-main,
.home-page-main,
.affiliate-page-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* === DARK THEME STYLES === */
/* Dark Theme Base Overrides */
.dark-theme-body {
    background: #0f141b !important;
    color: #f3f4f6 !important;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='2' fill='%2360a5fa'/%3E%3C/svg%3E") 12 12, auto;
}

.dark-theme-body a:hover,
.dark-theme-body button:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2L14 8L20 10L14 12L12 18L10 12L4 10L10 8L12 2Z' fill='%2300ffa2'/%3E%3Ccircle cx='12' cy='10' r='3' fill='%2360a5fa'/%3E%3C/svg%3E") 12 10, pointer;
}

.dark-theme-main {
    background: #0f141b !important;
}

.dark-theme-nav {
    background: rgba(15, 20, 27, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme-nav a {
    color: #f3f4f6 !important;
}

.dark-theme-nav a:hover {
    color: #60a5fa !important;
}

/* Dark Theme Post Styles */
.dark-theme-post-title {
    color: #f3f4f6 !important;
}

.dark-theme-post-meta {
    color: #9ca3af !important;
}

.dark-theme-post-meta svg {
    color: #6b7280 !important;
}

.dark-theme-post-content {
    color: #d1d5db !important;
}

.dark-theme-post-content p {
    color: #d1d5db !important;
    margin-bottom: 1.4rem;
}

.dark-theme-post-content strong {
    color: #f3f4f6 !important;
}

.dark-theme-post-content a {
    color: #60a5fa !important;
    text-decoration: none;
}

.dark-theme-post-content a:hover {
    color: #93c5fd !important;
    text-decoration: underline;
}

.dark-theme-post-content h2,
.dark-theme-post-content h3 {
    color: #f3f4f6 !important;
    margin: 1.8rem 0 .8rem;
    font-weight: 700;
}

.dark-theme-post-content h2 {
    font-size: 1.6rem;
}

.dark-theme-post-content h3 {
    font-size: 1.25rem;
}

/* Dark Theme Content Area */
.dark-theme-content-area {
    background: rgba(15, 20, 27, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Dark Theme Content Images */
.dark-theme-main img {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Theme Links in Main Content */
.dark-theme-main a {
    color: #60a5fa !important;
}

.dark-theme-main a:hover {
    color: #93c5fd !important;
}

/* Dark Theme Card Styles */
.dark-theme-card {
    background: rgba(31, 41, 55, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme-card:hover {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

/* Dark Theme Text Selection */
.dark-theme-main ::selection {
    background: rgba(96, 165, 250, 0.3);
    color: #f3f4f6;
}

.dark-theme-main ::-moz-selection {
    background: rgba(96, 165, 250, 0.3);
    color: #f3f4f6;
}

/* Dark Theme Prose Styling */
.dark-theme-prose {
    color: #d1d5db !important;
}

.dark-theme-prose strong {
    color: #f3f4f6 !important;
}

.dark-theme-prose a {
    color: #60a5fa !important;
}

.dark-theme-prose a:hover {
    color: #93c5fd !important;
}

/* Dark Theme Button Hover States */
.dark-theme-button:hover {
    background: linear-gradient(to right, #4a5de8, #07a3e6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 79, 216, 0.4);
}

/* Dark Theme Sidebar Styles */
.dark-theme-sidebar {
    color: #f3f4f6 !important;
}

.dark-theme-sidebar .bg-gray-50 {
    background: rgba(31, 41, 55, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme-sidebar .text-gray-700 {
    color: #d1d5db !important;
}

.dark-theme-sidebar .text-gray-500 {
    color: #9ca3af !important;
}

.dark-theme-sidebar .bg-gradient-to-r {
    background: linear-gradient(to right, #1e40af, #3b82f6) !important;
}

.dark-theme-sidebar .hover\:bg-gray-100:hover {
    background: rgba(55, 65, 81, 0.5) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

/* === DARK THEME SIDEBAR WIDGET STYLING === */
/* Dark Theme Widget Styling */
.dark-theme-sidebar .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.2s ease;
    backdrop-filter: none;
}

.dark-theme-sidebar .widget:not(:last-child) {
    margin-bottom: 1.5rem;
}

.dark-theme-sidebar .widget:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    border-color: rgba(77, 124, 254, 0.3);
    background: rgba(31, 41, 55, 0.8);
}

/* Dark Theme Widget Title */
.dark-theme-sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(55, 65, 81, 0.5);
    background: rgba(17, 24, 39, 0.5);
}

/* Dark Theme Widget Content */
.dark-theme-sidebar .widget p {
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.dark-theme-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dark-theme-sidebar .widget ul li {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.dark-theme-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.dark-theme-sidebar .widget a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dark-theme-sidebar .widget a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Dark Theme Search Widget */
.dark-theme-sidebar .search-form {
    display: flex;
    gap: 0.5rem;
    padding: 1.5rem;
}

.dark-theme-sidebar .search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #f3f4f6;
}

.dark-theme-sidebar .search-form input[type="search"]::placeholder {
    color: #9ca3af;
}

.dark-theme-sidebar .search-form button {
    padding: 0.5rem 1rem;
    background: #4D7CFE;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dark-theme-sidebar .search-form button:hover {
    background: #00ffa2;
    color: #0f141b;
}

/* Dark Theme Text Widget */
.dark-theme-sidebar .textwidget {
    color: #d1d5db;
}

/* Dark Theme Custom HTML Widget */
.dark-theme-sidebar .widget_text.widget_custom_html:has(.testimonials-scrolling-widget),
.dark-theme-sidebar .widget_text:has(.testimonials-scrolling-widget) {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Dark Theme Categories/Archives Widget */
.dark-theme-sidebar .widget select {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 0.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0.375rem;
    color: #f3f4f6;
}

.dark-theme-sidebar .widget select option {
    background: #111827;
}

/* Dark Theme Tag Cloud Widget */
.dark-theme-sidebar .tagcloud {
    padding: 1.5rem;
}

.dark-theme-sidebar .tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 9999px;
    font-size: 0.875rem !important;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #d1d5db;
}

.dark-theme-sidebar .tagcloud a:hover {
    background: rgba(77, 124, 254, 0.2);
    border-color: rgba(77, 124, 254, 0.5);
    color: #93c5fd;
}

/* Dark Theme Calendar Widget */
.dark-theme-sidebar .widget_calendar table {
    width: 100%;
    font-size: 0.875rem;
    color: #d1d5db;
}

.dark-theme-sidebar .widget_calendar caption {
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: rgba(17, 24, 39, 0.5);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    color: #f3f4f6;
}

.dark-theme-sidebar .widget_calendar tbody {
    padding: 1rem;
}

.dark-theme-sidebar .widget_calendar td,
.dark-theme-sidebar .widget_calendar th {
    padding: 0.5rem;
    text-align: center;
}

.dark-theme-sidebar .widget_calendar th {
    color: #9ca3af;
}

/* First widget spacing */
.dark-theme-sidebar .sidebar-content > .widget:first-child {
    margin-top: 0;
}

/* === EXCERPT CONTENT STYLING === */
/* Styles for HTML content within excerpts */
.excerpt-content span[style*="color:green"] {
    color: #16a34a !important; /* green-600 */
}

.dark-theme-main .excerpt-content span[style*="color:green"] {
    color: #4ade80 !important; /* green-400 for dark theme */
}

.excerpt-content strong,
.excerpt-content b {
    font-weight: 600;
}

.excerpt-content em,
.excerpt-content i {
    font-style: italic;
}

.excerpt-content a {
    color: #2563eb;
    text-decoration: underline;
}

.excerpt-content a:hover {
    color: #1d4ed8;
}

.dark-theme-main .excerpt-content a {
    color: #60a5fa;
}

.dark-theme-main .excerpt-content a:hover {
    color: #93c5fd;
}

/* Override Tailwind's leading-tight to have minimal line height */
.leading-tight {
    line-height: 1 !important;
}

