/* css/styles.css */

/* CSS Variables for Plex-Alike Theme */
:root {
    /* Primary Colors */
    --plex-dark-bg: #2b2b2b;
    --plex-medium-bg: #1e1e1e;
    --plex-light-bg: #333333;

    --plex-text: #f0f0f0;
    --plex-secondary-text: #b3b3b3;

    --plex-accent: #00aaff; /* Blue accent */
    --plex-hover: #007acc;

    /* Font Sizes */
    --font-size-small: 0.9rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.5rem;

    /* Font Families */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Reset Some Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--plex-dark-bg);
    color: var(--plex-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    padding: 20px;
}

a {
    color: var(--plex-accent);
    text-decoration: none;
}

a:hover {
    color: var(--plex-hover);
    text-decoration: underline;
}

/* Header Styling */
header {
    background-color: var(--plex-medium-bg);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

header h1 {
    font-size: var(--font-size-large);
    color: var(--plex-accent);
}

nav {
    margin-top: 10px;
}

nav a {
    margin-right: 15px;
    font-size: var(--font-size-medium);
    color: var(--plex-text);
}

nav a:hover {
    color: var(--plex-hover);
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 10px 0 20px 0;
    font-size: 0.9rem;
    color: var(--plex-secondary-text);
}

.breadcrumbs a {
    color: var(--plex-accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Main Content Styling */
main {
    max-width: 800px;
    margin: 0 auto;
}

/* Posts on Homepage */
.posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.posts article {
    background-color: var(--plex-medium-bg);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.posts article h2 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--plex-accent);
}

.posts article p {
    font-size: var(--font-size-medium);
    color: var(--plex-text);
    margin-bottom: 10px;
}

.posts article small {
    font-size: var(--font-size-small);
    color: var(--plex-secondary-text);
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--plex-medium-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.table-of-contents h2 {
    color: var(--plex-accent);
    margin-bottom: 10px;
}

.table-of-contents ul {
    list-style-type: none;
}

.table-of-contents li {
    margin-bottom: 5px;
}

.table-of-contents a {
    color: var(--plex-text);
}

.table-of-contents a:hover {
    color: var(--plex-hover);
}

/* Steps Accordion */
.steps .step {
    border: 1px solid #444;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: var(--plex-medium-bg);
}

.steps .step label {
    display: block;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--plex-accent);
    background-color: var(--plex-light-bg);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.steps .step label:hover {
    background-color: var(--plex-accent);
    color: #fff;
}

.steps .step input {
    display: none;
}

.steps .step .content {
    background-color: var(--plex-medium-bg);
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-radius: 0 0 5px 5px;
}

.steps .step input:checked ~ .content {
    max-height: 1000px; /* Adjust as needed */
    padding: 15px;
}

.steps .step .content p,
.steps .step .content ul {
    margin-bottom: 10px;
}

.steps .step .content ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: var(--plex-secondary-text);
    font-size: 0.9rem;
}

/* Request Section Specific Styles */
.request-section {
    background-color: var(--plex-medium-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.request-section h2 {
    color: var(--plex-accent);
    margin-bottom: 15px;
}

.request-section p {
    font-size: var(--font-size-medium);
    color: var(--plex-text);
    margin-bottom: 20px;
}

/* Ensure video responsiveness */
.request-section video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Optional: Style for figure and figcaption */
.request-section figure {
    margin-top: 15px;
}

.request-section figcaption {
    font-size: 0.9rem;
    color: var(--plex-secondary-text);
    text-align: center;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header, .table-of-contents, .steps .step label, .steps .step .content, .request-section {
        padding: 10px;
    }

    .table-of-contents ul {
        padding-left: 20px;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }
}
