/* 
  GYM TRAINING NOTEBOOK - GLOBAL STYLES
  Font: Inter (Google Fonts)
  Aesthetic: Minimalist Notebook, White Background, Black Text
  Highlight: Neon Highlighter (#ccff00)
*/

@import url('https://googleapis.com');

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --highlight-color: #ccff00;
    --secondary-color: #f4f4f4;
    --border-color: #000000;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Notebook Aesthetic - Margin Line */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 15%;
    width: 2px;
    height: 100%;

    z-index: -1;
}

header {
    margin-bottom: 60px;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 20px;
}

h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    position: relative;
    display: inline-block;
    z-index: 1;
    color: var(--text-color);
    /* Added to ensure pure black */
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Neon Highlighter Effect */
.highlighter {
    position: relative;
}

.highlighter::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -5%;
    width: 110%;
    height: 0.5em;
    background-color: var(--highlight-color);
    z-index: -1;
    opacity: 0.8;
    transform: rotate(-0.5deg);
}

/* --- FIXING THE BLUE COLOR: REPLACED WITH BLACK --- */
a,
nav a,
.back-link,
.btn {
    text-decoration: none;
    color: var(--text-color) !important;
    /* Forced black to override blue */
    font-weight: 600;
}

a:visited {
    color: var(--text-color) !important;
    /* Prevents visited link purple/blue color */
}

/* -------------------------------------------------- */

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

nav a,
.btn {
    font-size: 1.1rem;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    background-color: var(--bg-color);
    display: inline-block;
}

nav a:hover,
.btn:hover {
    background-color: var(--highlight-color);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--border-color);
}

/* Grid Layout for Home */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    border: 2px solid var(--border-color);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: #fafafa;
    border-color: var(--highlight-color);
}

.category-card h3 {
    margin-bottom: 15px;
}

/* Exercise Page Styles */
.exercise-meta {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--secondary-color);
    border-left: 10px solid var(--highlight-color);
}

.exercise-image {
    width: 100%;
    height: auto;
    border: 2px solid var(--border-color);
    margin: 30px 0;
    background-color: #eee;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: var(--text-color);
    /* Changed from grey to black */
}

.instruction-list {
    margin: 20px 0;
    padding-left: 20px;
}

.instruction-list li {
    margin-bottom: 10px;
    list-style-type: decimal;
}

.mistakes-box {
    border: 2px dashed #ff4444;
    padding: 20px;
    margin-top: 30px;
}

.tips-box {
    border: 2px dashed #44bb44;
    padding: 20px;
    margin-top: 20px;
}

/* Back Button */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }

    h1 {
        font-size: 2rem;
    }

    header {
        margin-bottom: 30px;
    }

    body::before {
        left: 5%;
    }
}