@import 'tailwindcss';
@import 'tw-animate-css';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@custom-variant dark (&:is(.dark *));

@theme {
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;

    --color-aqua-primary: #00F2FE;
    --color-cyan-accent: #38BDF8;
    --color-teal-glow: #14B8A6;
    --color-dark-bg: #060B18;
    --color-dark-surface: #0B132B;
    --color-dark-card: #0F172A;
}

:root {
    --background: #060B18;
    --foreground: #F8FAFC;
    --card: #0B132B;
    --card-foreground: #F8FAFC;
    --primary: #00F2FE;
    --primary-foreground: #060B18;
    --secondary: #1E293B;
    --secondary-foreground: #38BDF8;
    --muted: #1E293B;
    --muted-foreground: #94A3B8;
    --accent: #38BDF8;
    --accent-foreground: #060B18;
    --border: rgba(56, 189, 248, 0.15);
    --input: #1E293B;
    --ring: #00F2FE;
}

body {
    background-color: #060B18;
    color: #F8FAFC;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Custom Glassmorphism & Aqua UI Utilities */
.glass-card {
    background: rgba(11, 19, 43, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
    transform: translateY(-3px);
}

.text-gradient-aqua {
    background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-aqua {
    background: linear-gradient(135deg, #00F2FE 0%, #0284C7 100%);
    color: #060B18;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}

.btn-aqua:hover {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
    transform: scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060B18;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00F2FE;
}

/* CKEditor 5 Dark Aqua Theme Overrides */
.ck.ck-editor {
    border-radius: 0.75rem !important;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
}

.ck.ck-toolbar {
    background-color: #0B132B !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
}

.ck.ck-toolbar .ck-button, .ck.ck-dropdown__button {
    color: #CBD5E1 !important;
}

.ck.ck-toolbar .ck-button:hover, .ck.ck-button.ck-on {
    background-color: rgba(0, 242, 254, 0.15) !important;
    color: #00F2FE !important;
}

.ck-content.ck-editor__editable,
.ck.ck-editor__editable_inline {
    background-color: #060B18 !important;
    color: #F8FAFC !important;
    min-height: 320px !important;
    max-height: 550px !important;
    overflow-y: auto !important;
    padding: 1.25rem 1.5rem !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.8 !important;
}

.ck-content.ck-editor__editable:focus,
.ck.ck-editor__editable_inline:focus {
    border-color: #00F2FE !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25) !important;
}

/* In-Editor Typography & Elements */
.ck-content h1, .ck-content h2 {
    color: #FFFFFF !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-top: 1.75rem !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
    padding-bottom: 0.5rem !important;
}

.ck-content h3, .ck-content h4 {
    color: #38BDF8 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.ck-content p {
    color: #CBD5E1 !important;
    margin-bottom: 1rem !important;
}

.ck-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 1.5rem 0 !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    background: rgba(11, 19, 43, 0.85) !important;
}

.ck-content th {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #00F2FE !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    padding: 0.875rem 1rem !important;
    border-bottom: 2px solid rgba(0, 242, 254, 0.3) !important;
    text-align: left !important;
}

.ck-content td {
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem !important;
    color: #E2E8F0 !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1) !important;
}

.ck-content pre {
    background: #03060E !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    color: #38BDF8 !important;
    font-family: ui-monospace, monospace !important;
    margin: 1.5rem 0 !important;
    white-space: pre-wrap !important;
}

.ck-content blockquote {
    border-left: 4px solid #00F2FE !important;
    background: rgba(0, 242, 254, 0.05) !important;
    padding: 0.875rem 1.25rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
    font-style: italic !important;
    color: #F1F5F9 !important;
}

.ck.ck-dropdown__panel {
    background-color: #0B132B !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.ck.ck-list__item .ck-button {
    color: #CBD5E1 !important;
}

.ck.ck-list__item .ck-button:hover {
    background-color: rgba(0, 242, 254, 0.15) !important;
    color: #00F2FE !important;
}


/* ==========================================================================
   Editorial Typography & Rich Content Styling (Blog, CMS Pages & Articles)
   ========================================================================== */

.article-prose,
.prose,
.blog-content {
    color: #CBD5E1;
    font-size: 1.0625rem;
    line-height: 1.85;
}

/* Headings */
.article-prose h1, .prose h1, .blog-content h1 {
    color: #FFFFFF;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.article-prose h2, .prose h2, .blog-content h2 {
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.article-prose h3, .prose h3, .blog-content h3 {
    color: #38BDF8;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.4;
    margin-top: 2.25rem;
    margin-bottom: 0.875rem;
}

.article-prose h4, .prose h4, .blog-content h4 {
    color: #E2E8F0;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Paragraphs & Text */
.article-prose p, .prose p, .blog-content p {
    margin-bottom: 1.5rem;
    color: #CBD5E1;
    line-height: 1.85;
}

.article-prose strong, .prose strong, .blog-content strong {
    color: #FFFFFF;
    font-weight: 700;
}

.article-prose em, .prose em, .blog-content em {
    color: #94A3B8;
    font-style: italic;
}

/* Links */
.article-prose a, .prose a, .blog-content a {
    color: #00F2FE;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.article-prose a:hover, .prose a:hover, .blog-content a:hover {
    color: #38BDF8;
    text-decoration-color: #00F2FE;
}

/* Lists */
.article-prose ul, .prose ul, .blog-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.article-prose ul > li, .prose ul > li, .blog-content ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #CBD5E1;
    line-height: 1.75;
}

.article-prose ul > li::before, .prose ul > li::before, .blog-content ul > li::before {
    content: "▹";
    position: absolute;
    left: 0.25rem;
    top: 0;
    color: #00F2FE;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.75;
}

.article-prose ol, .prose ol, .blog-content ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
    margin: 1.5rem 0;
    color: #CBD5E1;
}

.article-prose ol > li, .prose ol > li, .blog-content ol > li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    padding-left: 0.35rem;
}

.article-prose ol > li::marker, .prose ol > li::marker, .blog-content ol > li::marker {
    color: #00F2FE;
    font-weight: 700;
}

/* Tables (Rich Dark-Aqua Glassmorphism Table Styling - Single Clean Container) */
.table-responsive-wrapper {
    overflow-x: auto;
    margin: 2.25rem 0;
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(11, 19, 43, 0.75);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.table-responsive-wrapper table,
.article-prose .table-responsive-wrapper table,
.prose .table-responsive-wrapper table,
.blog-content .table-responsive-wrapper table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: table;
}

.article-prose table:not(.table-responsive-wrapper table),
.prose table:not(.table-responsive-wrapper table),
.blog-content table:not(.table-responsive-wrapper table) {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 2.25rem 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(11, 19, 43, 0.75);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    display: table;
}

.article-prose table thead, .prose table thead, .blog-content table thead {
    background: rgba(15, 23, 42, 0.95);
}

.article-prose table th, .prose table th, .blog-content table th {
    background: rgba(15, 23, 42, 0.95);
    color: #00F2FE;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1.125rem 1.25rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 242, 254, 0.3);
}

.article-prose table td, .prose table td, .blog-content table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #E2E8F0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    line-height: 1.65;
    vertical-align: top;
}

.article-prose table tr:nth-child(even), .prose table tr:nth-child(even), .blog-content table tr:nth-child(even) {
    background: rgba(6, 11, 24, 0.45);
}

.article-prose table tr:hover, .prose table tr:hover, .blog-content table tr:hover {
    background: rgba(0, 242, 254, 0.06);
}

.article-prose table tr:last-child td, .prose table tr:last-child td, .blog-content table tr:last-child td {
    border-bottom: none;
}


/* Code Snippets & Pre Blocks */
.article-prose pre, .prose pre, .blog-content pre {
    background: #060B18 !important;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
    color: #F8FAFC;
}

.article-prose pre code, .prose pre code, .blog-content pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #38BDF8;
    display: block;
}

.article-prose :not(pre) > code, .prose :not(pre) > code, .blog-content :not(pre) > code {
    background: rgba(0, 242, 254, 0.12);
    color: #00F2FE;
    padding: 0.2rem 0.45rem;
    border-radius: 0.375rem;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Blockquotes */
.article-prose blockquote, .prose blockquote, .blog-content blockquote {
    border-left: 4px solid #00F2FE;
    background: rgba(0, 242, 254, 0.05);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #F1F5F9;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Horizontal Dividers */
.article-prose hr, .prose hr, .blog-content hr {
    border: 0;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    margin: 3rem 0;
}

/* Images & Captions */
.article-prose img, .prose img, .blog-content img {
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin: 2rem 0;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}

