/* Halls of Strength - Custom Styles */
/* Complementary to Tailwind CSS */

/* ============================================================
   BASE OVERRIDES
   ============================================================ */

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(166, 124, 82, 0.3);
    color: #EAEAEA;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A67C52;
}

/* ============================================================
   AD SLOT STYLING - Golden Glow
   ============================================================ */

.ad-slot {
    position: relative;
}

.ad-slot .ad-glow-border {
    position: relative;
    border: 2px solid rgba(166, 124, 82, 0.4);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow:
        0 0 15px rgba(166, 124, 82, 0.3),
        0 0 30px rgba(166, 124, 82, 0.15),
        inset 0 0 15px rgba(166, 124, 82, 0.05);
    transition: box-shadow 0.3s ease;
}

.ad-slot .ad-glow-border:hover {
    box-shadow:
        0 0 20px rgba(166, 124, 82, 0.5),
        0 0 40px rgba(166, 124, 82, 0.25),
        inset 0 0 20px rgba(166, 124, 82, 0.08);
}

.ad-slot .sponsored-label {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #A67C52, #C09A73);
    color: #0A0A0A;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
}

/* ============================================================
   CONTENT STYLES - Rich Text
   ============================================================ */

.prose h2 {
    font-family: 'Teko', sans-serif;
    font-size: 1.875rem;
    color: #EAEAEA;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prose h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: #EAEAEA;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.prose p {
    margin-bottom: 1rem;
    color: rgba(234, 234, 234, 0.85);
    line-height: 1.75;
}

.prose a {
    color: #A67C52;
    text-decoration: underline;
    transition: color 0.2s;
}

.prose a:hover {
    color: #C09A73;
}

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

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

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

.prose li {
    margin-bottom: 0.5rem;
    color: rgba(234, 234, 234, 0.85);
}

.prose blockquote {
    border-left: 4px solid #A67C52;
    padding-left: 1rem;
    font-style: italic;
    color: #999999;
    margin: 1.5rem 0;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.prose strong {
    color: #EAEAEA;
    font-weight: 600;
}

.prose code {
    background: #1A1A1A;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.prose pre {
    background: #1A1A1A;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th, .prose td {
    border: 1px solid #262626;
    padding: 0.75rem;
    text-align: left;
}

.prose th {
    background: #1A1A1A;
    color: #A67C52;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
}

/* ============================================================
   CARD HOVER EFFECTS
   ============================================================ */

.content-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   CATEGORY BADGES
   ============================================================ */

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #1A1A1A;
    color: #C09A73;
    border: 1px solid #262626;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: #262626;
    border-color: #A67C52;
}

/* ============================================================
   DROPDOWN ENHANCEMENTS
   ============================================================ */

nav .group:hover .group-hover\:visible {
    clip-path: none;
}

/* ============================================================
   LOADING STATES
   ============================================================ */

.skeleton {
    background: linear-gradient(90deg, #1A1A1A 25%, #262626 50%, #1A1A1A 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE AD SLOTS
   ============================================================ */

.ad-slot-top {
    margin: 1.5rem auto;
    max-width: 48rem;
    padding: 0 1rem;
}

.ad-slot-bottom {
    margin: 2rem auto;
    max-width: 48rem;
    padding: 0 1rem;
}

@media (max-width: 640px) {
    .ad-slot-top,
    .ad-slot-bottom {
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    .ad-slot .sponsored-label {
        font-size: 0.55rem;
        padding: 0.15rem 0.5rem;
    }
}

/* ============================================================
   FORM STYLES (Admin)
   ============================================================ */

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1A1A1A;
    border: 1px solid #262626;
    border-radius: 0.5rem;
    color: #EAEAEA;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #A67C52;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
}

.form-input::placeholder {
    color: #666666;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #EAEAEA;
    margin-bottom: 0.5rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */

.admin-sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: rgba(234, 234, 234, 0.7);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.admin-sidebar-link:hover {
    background: #1A1A1A;
    color: #A67C52;
}

.admin-sidebar-link.active {
    background: #1A1A1A;
    color: #A67C52;
    border-left: 3px solid #A67C52;
}

/* ============================================================
   RICH TEXT EDITOR MINIMAL STYLES
   ============================================================ */

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #0A0A0A;
    border: 1px solid #262626;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
}

.editor-toolbar button {
    padding: 0.5rem;
    background: #1A1A1A;
    border: 1px solid #262626;
    border-radius: 0.25rem;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.editor-toolbar button:hover {
    background: #262626;
    color: #A67C52;
}

.editor-content {
    min-height: 300px;
    padding: 1rem;
    background: #1A1A1A;
    border: 1px solid #262626;
    border-radius: 0 0 0.5rem 0.5rem;
    color: #EAEAEA;
    line-height: 1.6;
    outline: none;
}

.editor-content:focus {
    border-color: #A67C52;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

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

/* ============================================================
   NOTIFICATION / TOAST
   ============================================================ */

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #EAEAEA;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.toast-success {
    background: #1a3a1a;
    border: 1px solid #2d5a2d;
}

.toast-error {
    background: #3a1a1a;
    border: 1px solid #5a2d2d;
}

.toast-info {
    background: #1a2a3a;
    border: 1px solid #2d4a5a;
}
