/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;700&display=swap');

/* Font Variables (Updated) */
:root {
    /* Both header and body now use Kanit */
    --font-header: 'Kanit', sans-serif;
    --font-body: 'Kanit', sans-serif;
}

/* Base styles */
body {
    font-family: var(--font-body);
    background-color: #1a1a2e; /* Dark blue-purple */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(132, 94, 194, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700; /* Use a bold weight for headers */
    color: #ffd700; /* Gold */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Custom font class for consistency */
.font-kanit {
    font-family: var(--font-body);
}

/* Navigation Link Styles */
.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700; /* Gold */
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid #ffd700;
}

/* --- CORRECTED BUTTON STYLES --- */
.btn-primary {
    display: inline-block;
    background-color: #7e22ce; /* Purple-700 */
    color: white;
    font-weight: bold;
    padding: 0.5rem 1.5rem; /* py-2 px-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
    transition: all 0.3s ease-in-out;
    border: 1px solid #c0b6f0;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #6b21a8; /* Purple-800 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: #eab308; /* Yellow-500 */
    color: #1a1a2e; /* Dark background color for text */
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    border: 1px solid #ffd700;
}

.btn-secondary:hover {
    background-color: #ca8a04; /* Yellow-600 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


/* Form Input Styling */
.form-input {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #2d3748;
    border-width: 1px;
    border-color: #581c87; /* Purple-800 */
    border-radius: 0.375rem;
    color: #e2e8f0;
}
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #eab308; /* Ring-yellow-500 */
    border-color: transparent;
}

.form-select {
    width: 100%;
    padding-left: 1rem;
    padding-right: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #2d3748;
    border-width: 1px;
    border-color: #581c87;
    border-radius: 0.375rem;
    color: #e2e8f0;
    -webkit-appearance: none;
    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='%239ca3af' 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;
}
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #eab308;
    border-color: transparent;
}


/* Custom Card Style for Members */
.member-card {
    background-color: rgba(26, 26, 46, 0.7); /* Dark blue-purple with transparency */
    border: 1px solid #4b0082; /* Indigo/Purple border */
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(132, 94, 194, 0.3);
}

/* Modal Styling */
.modal-content {
    background: #1a1a2e;
    border: 2px solid #ffd700;
}

/* WYSIWYG Editor styling */
.wysiwygEditor-wrapper {
  background: #2d3748; /* gray-800 */
  border: 1px solid #4a5568; /* gray-600 */
  color: #e2e8f0; /* gray-300 */
  border-radius: 0.375rem; /* rounded-md */
}

.wysiwygEditor-wrapper .wysiwygEditor-toolbar {
  padding: 10px;
  background: #1a202c; /* gray-900 */
  border-bottom: 1px solid #4a5568; /* gray-600 */
}

.wysiwygEditor-wrapper .wysiwygEditor-toolbar ul li a {
  color: #a0aec0; /* gray-400 */
}

.wysiwygEditor-wrapper .wysiwygEditor-toolbar ul li a:hover,
.wysiwygEditor-wrapper .wysiwygEditor-toolbar ul li .action-active {
  color: #ffd700; /* gold */
  background: #4a5568; /* gray-600 */
}

.wysiwygEditor-wrapper .wysiwygEditor-toolbar ul .break {
  color: #4a5568; /* gray-600 */
}

.wysiwygEditor-wrapper .wysiwygEditor-footer {
  background: #1a202c; /* gray-900 */
  color: #718096; /* gray-500 */
  font-size: 10px;
  padding: 5px 10px;
}
/* --- NEW: UI Tag Styles --- */
.ui-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    line-height: 1.25rem;
    border-radius: 9999px; /* rounded-full */
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.tag-blue { background-color: #3b82f6; }
.tag-green { background-color: #22c55e; }
.tag-red { background-color: #ef4444; }
.tag-purple { background-color: #a855f7; }
.tag-teal { background-color: #14b8a6; }
.tag-gray { background-color: #6b7280; }
.tag-yellow { background-color: #eab308; color: #1a1a2e; text-shadow: none;}
.tag-orange { background-color: #f97316; }

/* Special rainbow tag for LGBT+ */
.tag-rainbow {
    background-image: linear-gradient(to right, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #a855f7);
}
/* --- Add this to the end of your style.css file --- */
.tag-sky { background-color: #0ea5e9; }

/* --- NEW: Add this to the end of your style.css --- */
.forced-font-style {
    font-family: 'Kanit', sans-serif !important;
    font-size: 1rem !important; /* 16px */
    line-height: 1.7 !important;
    color: #e0e0e0 !important;
    background: none !important;
}

/* This resets any potential styling on paragraphs or other tags inside the div */
.forced-font-style * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    background: none !important;
}