/* Modern Website Styles - 2024 */

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
#container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

/* Main Content Area */
#main {
    padding: 0;
}

/* Branding / Header */
#branding {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem 3rem;
    color: white;
    text-align: center;
}

#branding h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

#branding p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Navigation */
#navigation {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.navigation tr {
    display: flex;
    gap: 0;
}

.navigation td {
    padding: 0;
}

.navigation li {
    list-style: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.navigation li:hover {
    background: var(--bg-light);
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* Promo Section */
.promo-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 2rem 0;
}

#promo {
    padding: 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    margin: 0 2rem 2rem;
    box-shadow: var(--shadow-md);
}

#promo div {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

#promo strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Columns */
.column {
    float: left;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.column-content {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

/* Modern Headings */
.column table[style*="title-orange"],
.column table[style*="title-blue"] {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.column table[style*="title-orange"] td,
.column table[style*="title-blue"] td {
    background: none !important;
    padding: 1rem 1.5rem;
    color: white !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Post Styles */
#postTitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#postCredits {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

#postContent {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

#postContent a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

#postContent a:hover {
    border-bottom-color: var(--primary-color);
}

/* Quotes */
.quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.quoteBy {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem 1.5rem;
    text-align: right;
}

/* News Section */
#news {
    line-height: 1.8;
}

#news .source {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
}

#news .date {
    color: var(--text-light);
    font-size: 0.875rem;
}

#news .article {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

#news .article:hover {
    color: var(--primary-color);
}

/* Buttons */
div[onclick*="getStarted"] {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%) !important;
    padding: 1rem 2rem !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    height: auto !important;
}

div[onclick*="getStarted"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
}

div[onclick*="getStarted"] span {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    position: static !important;
    display: block;
    color: white !important;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

a.small {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
#footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-color);
}

#footer-left {
    float: left;
    font-size: 0.875rem;
    opacity: 0.8;
}

#footer-right {
    float: right;
    font-size: 0.875rem;
}

#footer a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    margin: 0 0.5rem;
}

#footer a:hover {
    opacity: 1;
}

/* Login Dialog */
div[dojotype="dialog"] {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

div[dojotype="dialog"] input[type="text"],
div[dojotype="dialog"] input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

div[dojotype="dialog"] input[type="text"]:focus,
div[dojotype="dialog"] input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

div[dojotype="dialog"] input[type="submit"],
div[dojotype="dialog"] button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

div[dojotype="dialog"] input[type="submit"]:hover,
div[dojotype="dialog"] button:hover {
    background: var(--secondary-color);
}

div[dojotype="dialog"] button {
    background: var(--text-light);
    margin-left: 0.5rem;
}

div[dojotype="dialog"] button:hover {
    background: var(--text-dark);
}

/* Clear floats */
div[style*="clear: both"] {
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .column {
        width: 100% !important;
        float: none;
    }

    #branding {
        padding: 1.5rem;
    }

    #branding h1 {
        font-size: 1.875rem;
    }

    .navigation li {
        padding: 1rem;
        font-size: 0.75rem;
    }

    #promo {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
    }

    #footer-left,
    #footer-right {
        float: none;
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.column {
    animation: fadeIn 0.6s ease-out;
}
