﻿/* MONA LISA - Shared Styles */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* Smooth form focus ring */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

/* Utilities */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.validation-summary-valid:empty {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Public page article content */
.article-content h2,
.content-grid h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.article-content h3,
.content-grid h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    color: #0f172a;
}

.article-content p,
.content-grid p {
    color: #334155;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol,
.content-grid ul,
.content-grid ol {
    margin: 0 0 1rem 1.5rem;
}

.article-content li,
.content-grid li {
    color: #334155;
    margin-bottom: 0.4rem;
}

.article-content a,
.content-grid a {
    color: #10b981;
    text-decoration: underline;
}

.article-content a:hover,
.content-grid a:hover {
    color: #059669;
}

.article-content blockquote,
.content-grid blockquote {
    border-left: 4px solid #10b981;
    padding: 0.5rem 1rem;
    color: #475569;
    font-style: italic;
    margin: 1.25rem 0;
    background: #f8fafc;
}

.article-content img,
.content-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
}

/* Admin shell links */
.admin-side-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.admin-side-link:hover {
    color: #ffffff;
    background: #1f2937;
}

.admin-side-link .material-icons-outlined {
    font-size: 1.2rem;
}

.admin-side-link-active {
    color: #ffffff;
    background: #1a2639;
    border-left: 4px solid #0df259;
    padding-left: 0.5rem;
}

.admin-side-link-active .material-icons-outlined {
    color: #0df259;
}

/* Refine bootstrap components inside admin area */
.admin-bootstrap .card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.admin-bootstrap .table {
    border-color: #e2e8f0;
}

.admin-bootstrap .table > :not(caption) > * > * {
    padding: 0.9rem 0.75rem;
    vertical-align: middle;
}

.admin-bootstrap .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #f8fafc;
}

.admin-bootstrap .btn {
    border-radius: 0.5rem;
}

.admin-bootstrap .btn-primary {
    background-color: #10b981;
    border-color: #10b981;
}

.admin-bootstrap .btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
}

.admin-bootstrap .btn-outline-primary {
    color: #10b981;
    border-color: #10b981;
}

.admin-bootstrap .btn-outline-primary:hover {
    background-color: #10b981;
    border-color: #10b981;
}

.admin-bootstrap .form-control,
.admin-bootstrap .form-select {
    border-radius: 0.5rem;
    border-color: #cbd5e1;
}

.admin-bootstrap .form-control:focus,
.admin-bootstrap .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
}

.admin-bootstrap .alert {
    border-radius: 0.75rem;
}

/* Summernote z-index fixes */
.note-editor.note-frame.fullscreen {
    z-index: 2000 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
}

.note-editor.note-frame .note-statusbar {
    display: none;
}

.note-modal {
    z-index: 2100 !important;
}

.note-modal-backdrop {
    z-index: 2090 !important;
}

.note-popover {
    z-index: 2080 !important;
}

/* Motion */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-top-color: #10b981;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Print */
@media print {
    header,
    footer,
    nav,
    .no-print {
        display: none !important;
    }

    main {
        margin: 0;
        padding: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:target {
    scroll-margin-top: 100px;
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}
