/* Subash SEO Theme - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Gradient text utilities */
.gradient-text {
    background: linear-gradient(to right, #c084fc, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated gradient backgrounds */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(270deg, #a855f7, #ec4899, #a855f7);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(to right, #a855f7, #ec4899);
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

/* Prose customization for dark theme */
.prose-purple {
    --tw-prose-body: #cbd5e1;
    --tw-prose-headings: #f1f5f9;
    --tw-prose-links: #c084fc;
    --tw-prose-bold: #f1f5f9;
    --tw-prose-counters: #94a3b8;
    --tw-prose-bullets: #94a3b8;
    --tw-prose-hr: #475569;
    --tw-prose-quotes: #e2e8f0;
    --tw-prose-quote-borders: #a855f7;
    --tw-prose-code: #ec4899;
    --tw-prose-pre-code: #e2e8f0;
    --tw-prose-pre-bg: #1e293b;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Backdrop blur support */
.backdrop-blur-custom {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

/* ========================================
   MARKDOWN CONTENT STYLING
   ======================================== */

/* Content Container */
.content {
    color: #cbd5e1;
    line-height: 1.75;
}

/* Headings */
.content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: #f1f5f9;
}

.content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    color: #f1f5f9;
    background: linear-gradient(to right, #c084fc, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #d8b4fe;
}

.content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: #e9d5ff;
}

/* Paragraphs */
.content p {
    margin-bottom: 1.25rem;
    color: #cbd5e1;
}

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

/* Links */
.content a {
    color: #c084fc;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(192, 132, 252, 0.3);
}

.content a:hover {
    color: #ec4899;
    border-bottom-color: rgba(236, 72, 153, 0.5);
}

/* Strong/Bold */
.content strong,
.content b {
    color: #f1f5f9;
    font-weight: 600;
}

/* Emphasis/Italic */
.content em,
.content i {
    font-style: italic;
    color: #e2e8f0;
}

/* Lists */
.content ul,
.content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content ul {
    list-style-type: none;
}

.content ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #a855f7;
    font-weight: bold;
}

.content ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.content ol li::marker {
    color: #a855f7;
    font-weight: 600;
}

/* Nested lists */
.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.content blockquote {
    border-left: 4px solid #a855f7;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #e2e8f0;
    background: rgba(168, 85, 247, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.content blockquote p {
    margin-bottom: 0.5rem;
}

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

/* Code */
.content code {
    background: #1e293b;
    color: #ec4899;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Monaco', 'Courier New', monospace;
}

.content pre {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.content pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Horizontal Rules */
.content hr {
    border: none;
    border-top: 2px solid #334155;
    margin: 2.5rem 0;
    background: linear-gradient(to right, transparent, #a855f7, #ec4899, transparent);
    height: 2px;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #1e293b;
    border-radius: 0.5rem;
    overflow: hidden;
}

.content thead {
    background: linear-gradient(to right, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}

.content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #f1f5f9;
    border-bottom: 2px solid #a855f7;
}

.content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

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

.content tbody tr:hover {
    background: rgba(168, 85, 247, 0.05);
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Checkboxes (for task lists) */
.content input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #a855f7;
}

/* Definition Lists */
.content dl {
    margin: 1.5rem 0;
}

.content dt {
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 1rem;
}

.content dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* Abbreviations */
.content abbr {
    text-decoration: underline dotted;
    cursor: help;
    color: #c084fc;
}

/* Mark/Highlight */
.content mark {
    background: rgba(168, 85, 247, 0.2);
    color: #f1f5f9;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

/* Small text */
.content small {
    font-size: 0.875em;
    color: #94a3b8;
}

/* Subscript and Superscript */
.content sub,
.content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.content sup {
    top: -0.5em;
}

.content sub {
    bottom: -0.25em;
}

/* Keyboard shortcuts */
.content kbd {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.25rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.875em;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #e2e8f0;
    box-shadow: 0 2px 0 #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 1.75rem;
    }
    
    .content h3 {
        font-size: 1.375rem;
    }
    
    .content h4 {
        font-size: 1.125rem;
    }
    
    .content pre {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .content table {
        font-size: 0.875rem;
    }
    
    .content th,
    .content td {
        padding: 0.5rem 0.75rem;
    }
}
