/* ==========================================================================
   SEZER AI - site styles
   Tailwind utilities are compiled into wwwroot/css/tailwind.css.
   This file only contains the theme base and stateful / repeated components
   that cannot be expressed as static utility classes in Razor views.
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #C9A84C40;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C9A84C80;
}

::selection {
    background: #C9A84C30;
    color: #F5D98B;
}

select option {
    background-color: #111111;
    color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #111111 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-nav.is-scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-menu {
    display: none;
}

.service-menu.is-open {
    display: block;
}

[data-services].is-open .nav-chevron {
    transform: rotate(180deg);
}

.service-menu-mobile {
    display: none;
}

.service-menu-mobile.is-open {
    display: flex;
}

.nav-chevron-mobile.is-open {
    transform: rotate(180deg);
}

.site-nav-mobile {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.site-nav-mobile.is-open {
    max-height: 100vh;
    opacity: 1;
}

/* Auth aware navigation */
[data-auth="user"] {
    display: none;
}

html.is-authed [data-auth="guest"] {
    display: none !important;
}

html.is-authed [data-auth="user"] {
    display: flex;
}

/* ==========================================================================
   Forms / auth shared
   ========================================================================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #0a0a0a;
    border-top-color: transparent;
    border-radius: 9999px;
    animation: sezer-spin 0.7s linear infinite;
}

@keyframes sezer-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-tab {
    color: #9ca3af;
}

.auth-tab:hover {
    color: #e5e7eb;
}

.auth-tab.is-active {
    background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
    color: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.rule .rule-check {
    display: none;
    color: #4ade80;
}

.rule .rule-dot {
    display: inline-block;
    color: #6b7280;
}

.rule .rule-label {
    color: #6b7280;
    transition: color 0.2s ease;
}

.rule.is-ok .rule-check {
    display: inline-block;
}

.rule.is-ok .rule-dot {
    display: none;
}

.rule.is-ok .rule-label {
    color: #4ade80;
}

/* ==========================================================================
   Panel
   ========================================================================== */
html:not(.is-authed) .panel-protected {
    visibility: hidden;
}

.panel-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    white-space: nowrap;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.panel-tab:hover {
    color: #e5e7eb;
}

.panel-tab.is-active {
    background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
    color: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.stat-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(201, 168, 76, 0.15);
    background-color: #0d0d0d;
    transition: all 0.2s ease;
    text-align: left;
    cursor: pointer;
}

.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}

.panel-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.panel-table thead tr {
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.panel-table th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.panel-table td {
    padding: 0.875rem 1.25rem;
    color: #d1d5db;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(201, 168, 76, 0.05);
}

.panel-table tbody tr:hover {
    background-color: rgba(201, 168, 76, 0.03);
}

.panel-table .cell-truncate {
    max-width: 220px;
}

.badge-published {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

/* ==========================================================================
   Blog article typography
   ========================================================================== */
.prose-custom {
    color: #d1d5db;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
}

.prose-custom h1 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.prose-custom h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.prose-custom h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.prose-custom p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.prose-custom a {
    color: #C9A84C;
    text-decoration: none;
}

.prose-custom a:hover {
    text-decoration: underline;
}

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

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

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

.prose-custom li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose-custom blockquote {
    border-left: 3px solid #C9A84C;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-style: italic;
}

.prose-custom img {
    border-radius: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.prose-custom hr {
    border-color: rgba(201, 168, 76, 0.2);
    margin: 2rem 0;
}
