/* Import a better font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Root variables for consistent theming */
:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-tertiary: #252b34;
    --bg-card: #2a3038;
    --accent-orange: #ff6b35;
    --accent-blue: #0890ff;
    --accent-green: #559000;
    --accent-red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --border-color: #3a424a;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
}

/* Base styles */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0a0e13 100%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Main content container */
#main-content {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
    position: relative;
    margin: 0 auto;
    max-width: 600px;
    min-width: 300px;
    padding-bottom: 8px;
    box-shadow: 0 0 50px var(--shadow-heavy);
}

/* Navbar styling */
#navbar {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px var(--shadow-light);
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    height: 64px;
    padding: 8px 16px;
    width: 100%;
    align-items: center;
}

#navbarright {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}

/* Logo */
#galaxylogo {
    height: auto;
    width: 40px;
    filter: drop-shadow(0 2px 8px var(--shadow-light));
    transition: transform 0.2s ease;
}

#galaxylogo:hover {
    transform: scale(1.05);
}

/* Typography */
h1 {
    align-items: center;
    display: flex;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

h1 a:hover {
    color: var(--accent-orange);
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: var(--text-secondary);
}

/* Button styling */
button {
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    height: 44px;
    min-width: 48px;
    padding: 0 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
    font-family: inherit;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--shadow-light);
}

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

/* Note: This is a quick hack to fix the Logout button sizing. Logo should probably not be a "redbutton" as it has very little in common with an actual button. */
#navbar .redbutton {
    padding: 0;
    width: 48px;
}

/* Button variants with vibrant color scheme */
.redbutton {
    background: linear-gradient(135deg, var(--accent-red) 0%, #e73c47 100%);
}

.redbutton:hover {
    background: linear-gradient(135deg, #ff5b6b 0%, var(--accent-red) 100%);
}

.bluebutton {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0077e6 100%);
}

.bluebutton:hover {
    background: linear-gradient(135deg, #1fa3ff 0%, var(--accent-blue) 100%);
}

.greenbutton {
    background: linear-gradient(135deg, var(--accent-green) 0%, #477a00 100%);
}

.greenbutton:hover {
    background: linear-gradient(135deg, #629f00 0%, var(--accent-green) 100%);
}

/* Card styling */
.card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 24px var(--shadow-light);
    box-sizing: border-box;
    display: block;
    margin: 16px;
    padding: 24px;
    width: calc(100% - 32px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-blue) 100%);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-heavy);
}

.card a {
    text-decoration: none;
}

.card button {
    display: block;
    margin: 16px auto 0;
}

.card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    color: var(--text-secondary);
}

.card p:last-of-type {
    margin-bottom: 0;
}

.card img {
    border-radius: 8px;
    display: block;
    margin: 0 0 16px 0;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 16px var(--shadow-light);
}

.card ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.card ul li {
    margin-bottom: 8px;
}

/* Embedded video */
.embeddedvideo {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    margin: 0 0 16px 0;
    width: 100%;
    box-shadow: 0 4px 16px var(--shadow-light);
}

/* Footer */
#footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    bottom: 0;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 13px;
    margin: 0;
    padding: 16px;
    position: absolute;
    width: 100%;
    color: var(--text-secondary);
}

#footer p {
    margin: 0;
    padding: 0;
}

#footer-spacer {
    height: 60px;
}

/* PayPal button container */
#paypal-button-container {
    margin: 16px 0;
}

/* Navbar avatar */
#navbaravatar {
    border-radius: 6px;
    height: 32px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #navbar {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .card {
        margin: 12px;
        padding: 20px;
        width: calc(100% - 24px);
    }
    
    h1 {
        font-size: 20px;
    }
    
    button {
        height: 40px;
        font-size: 13px;
    }
    
    .redbutton {
        width: 40px;
    }
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
