/* BoJack Horseman - Subtle LA Sunset Pastel Gradient Top Border */
body {
    margin: 0;
    padding: 0;
    background-color: #0b0c10;
    color: #c5c6c7;
    font-family: 'Courier New', Courier, monospace;
    border-top: 5px solid;
    border-image: linear-gradient(to right, #ff9a9e 0%, #fecfef 50%, #99f2c8 100%) 1;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Rick and Morty - Terminal / Portal Green Accents */
h1, h2, h3 {
    color: #66fcf1;
    font-weight: normal;
}

a {
    color: #45a29e;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #39ff14; /* Portal Green */
    text-shadow: 0 0 8px #39ff14;
}

.terminal-header {
    margin-bottom: 3rem;
    border-bottom: 1px dashed #45a29e;
    padding-bottom: 1rem;
}

.prompt::before {
    content: "razwan@c-137:~$ "; /* Subtle R&M Dimension Nod */
    color: #39ff14;
}

.blinking-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #39ff14;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.section {
    margin-bottom: 2rem;
}

/* Collapsible Section Styles */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, text-shadow 0.2s;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.collapsible-header:hover {
    color: #39ff14;
    text-shadow: 0 0 8px #39ff14;
}

.toggle-icon {
    float: right;
    font-size: 1.2rem;
    color: #45a29e;
}

.collapsible-content {
    display: none; /* Sections are hidden by default */
    padding-top: 1rem;
    overflow: hidden;
}

.collapsible-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.card {
    background-color: #1f2833;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #45a29e;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(102, 252, 241, 0.1);
    border-left-color: #39ff14;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #0b0c10;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card-title {
    color: #66fcf1;
    font-size: 1.2rem;
    margin: 0;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* Breaking Bad - Periodic Table Skills Section */
.periodic-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 1.5rem;
}

.element {
    background-color: #111;
    border: 2px solid #0f0;
    color: #fff;
    padding: 10px;
    text-align: center;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
}

.element:hover {
    background-color: #0f0;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

.element.dark {
    border-color: #ffd700; /* Meth Yellow */
}

.element.dark:hover {
    background-color: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.element-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.element-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.element-number {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px dashed #333;
}

/* Dynamic Text Animation for Citations */
.dynamic-text {
    color: #ffd700; /* Meth Yellow for emphasis */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.processing {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.3; }
}

/* Anonymous Message Terminal Form */
.terminal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-prompt {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#anonymous-msg {
    background-color: #0b0c10;
    border: 1px solid #45a29e;
    color: #39ff14;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px;
    resize: vertical;
    border-radius: 2px;
    outline: none;
    transition: box-shadow 0.3s, border-color 0.3s;
}

#anonymous-msg::placeholder {
    color: rgba(69, 162, 158, 0.5);
}

/* The tempting portal glow when clicked */
#anonymous-msg:focus {
    border-color: #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
    animation: portal-pulse 2s infinite alternate;
}

@keyframes portal-pulse {
    from { box-shadow: 0 0 5px rgba(57, 255, 20, 0.2); }
    to { box-shadow: 0 0 15px rgba(57, 255, 20, 0.6); }
}

.terminal-btn {
    background: transparent;
    color: #66fcf1;
    border: 1px dashed #66fcf1;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.terminal-btn:hover {
    background-color: rgba(102, 252, 241, 0.1);
    color: #39ff14;
    border-color: #39ff14;
    text-shadow: 0 0 5px #39ff14;
}

.status-text {
    margin: 0;
    font-size: 0.85rem;
    min-height: 1.2rem;
}

/* =========================================
   PORTAL GUN THEME OVERRIDES & VARIABLES
   ========================================= */
:root {
    /* Default: C-137 / Rick & Morty */
    --bg-main: #0b0c10;
    --bg-card: #1f2833;
    --text-main: #c5c6c7;
    --accent-primary: #66fcf1;
    --accent-secondary: #45a29e;
    --highlight: #39ff14; 
    --warning: #ffd700; 
}

body.theme-blue-sky {
    /* Alternate 1: Blue Sky / Breaking Bad */
    --bg-main: #050814;
    --bg-card: #101929;
    --text-main: #c4d8e2;
    --accent-primary: #00d4ff;
    --accent-secondary: #0077b6;
    --highlight: #00f0ff;
    --warning: #ffffff;
}

body.theme-hollywoo {
    /* Alternate 2: Hollywoo / BoJack Sunset */
    --bg-main: #2b2129;
    --bg-card: #42313f;
    --text-main: #f4ece6;
    --accent-primary: #ff9a9e;
    --accent-secondary: #d4a5a5;
    --highlight: #fecfef;
    --warning: #99f2c8;
}

/* 
   Dynamically applying the variables to your existing elements.
   This overrides the hardcoded colors above without breaking layout.
*/
body { background-color: var(--bg-main); color: var(--text-main); transition: background-color 0.4s ease, color 0.4s ease; }
.card { background-color: var(--bg-card); border-left-color: var(--accent-secondary); transition: transform 0.2s, box-shadow 0.2s, background-color 0.4s; }
h1, h2, h3 { color: var(--accent-primary); transition: color 0.4s; }
a { color: var(--accent-secondary); }
a:hover { color: var(--highlight); text-shadow: 0 0 8px var(--highlight); }
.terminal-header { border-bottom-color: var(--accent-secondary); }
.prompt::before { color: var(--highlight); }
.blinking-cursor { background-color: var(--highlight); }
.card:hover { border-left-color: var(--highlight); }
.card-header { border-bottom-color: var(--bg-main); }
.card-subtitle { color: var(--text-main); opacity: 0.7; }
.collapsible-header:hover { color: var(--highlight); text-shadow: 0 0 8px var(--highlight); }
.toggle-icon { color: var(--accent-secondary); }

/* Periodic Table Theme Adjustments */
.element { background-color: var(--bg-main); border-color: var(--highlight); color: var(--text-main); transition: all 0.3s ease; }
.element:hover { background-color: var(--highlight); color: var(--bg-main); box-shadow: 0 0 15px var(--highlight); }
.element.dark { border-color: var(--warning); }
.element.dark:hover { background-color: var(--warning); color: var(--bg-main); box-shadow: 0 0 15px var(--warning); }

/* Form Theme Adjustments */
#anonymous-msg { background-color: var(--bg-main); border-color: var(--accent-secondary); color: var(--highlight); }
#anonymous-msg:focus { border-color: var(--highlight); }
.terminal-btn { color: var(--accent-primary); border-color: var(--accent-primary); }
.terminal-btn:hover { color: var(--highlight); border-color: var(--highlight); background-color: transparent; text-shadow: 0 0 5px var(--highlight); }

/* Dynamic Text Overrides */
.dynamic-text { color: var(--warning); text-shadow: 0 0 5px var(--warning); }



