/* ============================================
   The Doghouse - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --accent-color: #58a6ff;
    --alert-color: #ff7b72;
    --success-color: #3fb950;
    --font-stack: 'Courier New', Courier, monospace;
}

/* Reset */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* Base Body Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--accent-color);
}

body.full-height {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 { 
    color: #fff; 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

h1 { 
    font-size: 2.5rem; 
    border-bottom: 1px solid #30363d; 
    padding-bottom: 1rem; 
}

p { 
    margin-bottom: 1.5rem; 
}

a { 
    color: var(--accent-color); 
    text-decoration: none; 
    border-bottom: 1px dashed var(--accent-color); 
}

a:hover { 
    background-color: var(--accent-color); 
    color: var(--bg-color); 
}

/* Utility Classes */
.highlight { 
    color: var(--success-color); 
    font-weight: bold; 
}

.warning { 
    color: var(--alert-color); 
}

.box { 
    border: 1px solid #30363d; 
    padding: 1.5rem; 
    margin-bottom: 2rem; 
    background: #161b22; 
}

/* Navigation */
nav { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 3rem; 
    font-size: 0.9rem; 
}

nav .status { 
    color: var(--success-color); 
}

nav .status::before { 
    content: '● '; 
    animation: blink 2s infinite; 
}

/* Hero Section */
header { 
    margin-bottom: 4rem; 
}

header.compact {
    margin-bottom: 2rem;
}

.hero-text { 
    font-size: 1.2rem; 
    max-width: 600px; 
}

/* Service Grid */
.services { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 3rem; 
}

.service-item h3::before { 
    content: '> '; 
    color: var(--accent-color); 
}

/* Info Grid (Partner page) */
.info-grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 0.5rem 1rem; 
}

.info-label { 
    color: #8b949e; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
}

.info-value { 
    color: #fff; 
}

/* Form Styling */
form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

label { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    color: #8b949e; 
}

input, textarea, select {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #fff;
    padding: 10px;
    font-family: var(--font-stack);
    width: 100%;
}

input:focus, textarea:focus, select:focus { 
    outline: 1px solid var(--accent-color); 
    border-color: var(--accent-color); 
}

input.is-invalid { 
    border-color: var(--alert-color); 
}

/* Buttons */
button {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 15px;
    font-family: var(--font-stack);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

button:hover { 
    background: #fff; 
}

button.with-margin {
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-stack);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
    margin-top: 1rem;
    text-align: center;
    transition: background 0.2s;
}

.btn:hover { 
    background: #fff; 
    color: var(--bg-color); 
}

.btn-danger { 
    background: var(--alert-color); 
}

.btn-secondary { 
    background: #30363d; 
    color: var(--text-color); 
}

/* Alerts */
.alert {
    border: 1px solid var(--alert-color);
    color: var(--alert-color);
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 123, 114, 0.1);
}

.alert-success {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(63, 185, 80, 0.1);
}

.invalid-feedback {
    color: var(--alert-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #161b22;
    border: 2px solid var(--success-color);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 20px rgba(63, 185, 80, 0.2);
    text-align: center;
    position: relative;
}

.modal-title {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #8b949e;
    cursor: pointer;
    font-size: 1.5rem;
    border: none;
    background: none;
}

.modal-close:hover { 
    color: #fff; 
}

.modal-btn {
    margin-top: 1.5rem;
    background: var(--success-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-stack);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Footer */
footer { 
    margin-top: 4rem; 
    border-top: 1px solid #30363d; 
    padding-top: 1rem; 
    font-size: 0.8rem; 
    color: #8b949e; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

footer.auto-margin {
    margin-top: auto;
}

/* Animation */
@keyframes blink { 
    0% { opacity: 1; } 
    50% { opacity: 0; } 
    100% { opacity: 1; } 
}

/* Action Bar */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #30363d;
}

.action-bar .btn {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 600px) {
    h1 { 
        font-size: 1.8rem; 
    }
    
    .info-grid { 
        grid-template-columns: 1fr; 
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar .btn {
        width: 100%;
        text-align: center;
    }
}
