/* Main DME-T Website Styles */

/* Import CSS Variables */
@import url('/dme-variables.css');

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dme-text);
    background-color: var(--dme-bg);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content Area */
main {
    flex: 1;
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dme-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--dme-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dme-hover);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--dme-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dme-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 188, 68, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dme-primary);
    border: 2px solid var(--dme-primary);
}

.btn-secondary:hover {
    background-color: var(--dme-primary);
    color: white;
}

/* Cards */
.card {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(106, 188, 68, 0.2);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--dme-primary);
    box-shadow: 0 4px 20px rgba(106, 188, 68, 0.2);
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid rgba(106, 188, 68, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--dme-text);
    border-radius: 4px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--dme-primary);
    box-shadow: 0 0 0 3px rgba(106, 188, 68, 0.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--dme-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Responsive Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(106, 188, 68, 0.3);
    border-top-color: var(--dme-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--dme-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--dme-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--dme-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dme-hover);
}