/* 
   NYC Answers Premium Styles
   Glassmorphism & Theming 
*/

:root {
    --bg-color: #f4f7f6;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --accent: #00E5FF;
    --accent-hover: #00b8cc;
    --btn-text: #000;
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    --backdrop: blur(10px);
}

/* Dark Mode Theme */
.theme-dark {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #FFD700;
    --accent-hover: #e6c200;
    --btn-text: #000;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Base Wrapper */
#nyclogix-answers-app {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 40px;
    border-radius: 16px;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.5s ease;
    min-height: 80vh;
}

/* Theme Toggle */
.theme-toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.theme-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Header */
.answers-header {
    text-align: center;
    margin-bottom: 40px;
}
.answers-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.answers-header p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 25px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--backdrop);
    -webkit-backdrop-filter: var(--backdrop);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Question Feed Cards */
.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border-color: var(--accent);
}

.q-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.q-title {
    margin: 0 0 10px 0;
    font-size: 22px;
}
.q-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}
.q-title a:hover {
    color: var(--accent);
}
.q-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.q-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    padding-top: 15px;
}
.q-answers-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: var(--text-primary);
}
.btn-read {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}
.btn-read:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-ask, .btn-submit {
    background: var(--accent);
    color: var(--btn-text);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-ask:hover, .btn-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}
.btn-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* Forms */
#ask-question-form input, #ask-question-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
}
#ask-question-form input:focus, #ask-question-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
