/* JULES_INSTRUCTIONS.md - Section 3: DESIGN SYSTEM (CSS) */
/* Tennessee Tech Purple and Gold Theme */

:root {
    --tn-purple: #4B2E83;
    --tn-gold: #FFB81C;
    --tn-light-purple: #6B4E9B;
    --tn-dark-purple: #3B1E73;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(75, 46, 131, 0.1);
    border-radius: 8px;
}

h1 {
    color: var(--tn-purple);
    border-bottom: 3px solid var(--tn-gold);
    padding-bottom: 10px;
}

h2 {
    color: var(--tn-purple);
    margin-top: 30px;
    margin-bottom: 20px;
}

h3 {
    color: var(--tn-dark-purple);
}

section {
    margin-bottom: 40px;
}

section:not(:last-child) {
    padding-bottom: 30px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--tn-gold);
    box-shadow: 0 4px 8px rgba(75, 46, 131, 0.15);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--tn-purple);
    margin-top: 0;
}

a {
    color: var(--tn-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--tn-light-purple);
}

/* Button styling for View Report and other links in cards */
.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--tn-purple);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card a:hover {
    background-color: var(--tn-dark-purple);
    transform: translateX(3px);
    color: white;
}

/* Calculator-specific styles */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--tn-purple);
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--tn-gold);
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.1);
}

button {
    padding: 12px 24px;
    background-color: var(--tn-purple);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--tn-dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(75, 46, 131, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Search input styles */
#search-input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--tn-gold);
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.1);
}

/* Show More button styles */
#show-more-btn {
    margin-top: 10px;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 80%;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#preview-content {
    width: 100%;
    height: 95%;
}
