/* =====================================================
   Theme Styles (CSS Grid Layout)
   Based on provided layout with Purple Accent (#6d4aff)
   ===================================================== */

/* --- Reset & Base ------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* --- Header ------------------------------------------ */
header {
    background-color: #6d4aff;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* --- Main Layout Container (CSS Grid) --------------- */
.container {
    display: grid;
    /* 
       Three-column grid:
       - Left: min 180px, target ~15% of available space
       - Center: flexible 1fr (takes remaining space)
       - Right: min 220px, target ~20% of available space
    */
    grid-template-columns: minmax(180px, 15%) 1fr minmax(220px, 20%);
    min-height: calc(100vh - 72px); /* Adjust for header height */
}

/* --- Left Column (Navigation/Sidebar) ---------------- */
.left-column {
    padding: 20px;
    background-color: #d8d7d7;
    overflow-y: auto;
}

.left-column nav ul {
    list-style: none;
}

.left-column nav li {
    margin-bottom: 10px;
}

.left-column nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.left-column nav a:hover {
    color: #6d4aff;
}

/* --- Center Column (Main Content) ------------------- */
.center-column {
    padding: 20px;
    background-color: #f0f0f0;
    overflow-y: auto;
}

.center-column article {
    margin-bottom: 30px;
}

.center-column h2 {
    color: #6d4aff;
    margin-bottom: 15px;
}

.center-column p {
    margin-bottom: 15px;
}

/* --- Right Column (Sidebar/Widgets) ------------------ */
.right-column {
    padding: 20px;
    background-color: #ffffff;
    border-left: 1px solid #ddd;
    overflow-y: auto;
}

.right-column aside {
    margin-bottom: 30px;
}

.right-column aside h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #6d4aff;
    padding-bottom: 8px;
}

/* --- Responsive Breakpoints ------------------------- */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
    }

    .left-column,
    .right-column {
        border-left: none;
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }

    .left-column,
    .center-column,
    .right-column {
        padding: 15px;
    }
}

/* --- Utility Classes ------------------------------- */
.btn {
    display: inline-block;
    background-color: #6d4aff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #5a3fd8;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* --- Accessibility ------------------------------- */
:focus-visible {
    outline: 2px solid #6d4aff;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}