/* Wild West Forum Styles */

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

html {
    height: 100%;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(to bottom, #f4e4bc 0%, #d4c5a0 100%);
    background-attachment: fixed;
    color: #3d2817;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px; /* Space for fixed footer */
}

/* Navigation */
nav {
    background: linear-gradient(to bottom, #8b4513 0%, #6b3410 100%);
    border-bottom: 3px solid #5a2a0a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    min-height: 60px; /* Fixed minimum height */
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    height: 100%;
    min-height: 60px;
    width: 100%;
}

.nav-container > a:first-child {
    flex-shrink: 0;
    margin-right: auto;
}

nav a {
    color: #f4e4bc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-links span {
    color: #ffd700;
    font-weight: bold;
    font-style: italic;
}

.nav-links form {
    display: inline;
    margin: 0;
    padding: 0;
}

.nav-links button {
    background: #a0522d;
    color: #f4e4bc;
    border: 2px solid #8b4513;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
}

.nav-links a.nav-button {
    background: #a0522d;
    color: #f4e4bc;
    border: 2px solid #8b4513;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.nav-links a.nav-button:hover {
    background: #8b4513;
    border-color: #6b3410;
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-links button:hover {
    background: #8b4513;
    border-color: #6b3410;
    transform: translateY(-1px);
}

/* Main Content */
main {
    width: 50%;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #8b4513;
    flex: 1; /* Allow main to grow and push footer down */
    box-sizing: border-box;
}

h1 {
    color: #8b4513;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #8b4513;
    padding-bottom: 0.4rem;
}

/* Homepage Styles */
.home-hero {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.home-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    border: none;
    padding-bottom: 0;
    color: #8b4513;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.3rem;
    color: #a0522d;
    font-weight: bold;
    font-style: italic;
    margin: 0.25rem 0;
}

.subtitle {
    font-size: 1rem;
    color: #6b3410;
    margin-top: 0.25rem;
    font-style: italic;
}

.welcome-section {
    margin-top: 1rem;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(244, 228, 188, 0.8) 0%, rgba(212, 197, 160, 0.8) 100%);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.welcome-card h2 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-card p {
    font-size: 1rem;
    color: #3d2817;
    margin: 0.25rem 0;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #8b4513;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    border-width: 4px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.action-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-card.primary {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border-color: #6b3410;
    color: #f4e4bc;
}

.action-card.primary:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    border-color: #8b4513;
}

.action-card.secondary {
    background: linear-gradient(135deg, #d4c5a0 0%, #f4e4bc 100%);
    border-color: #8b4513;
    color: #3d2817;
}

.action-card.secondary:hover {
    background: linear-gradient(135deg, #f4e4bc 0%, #d4c5a0 100%);
}

.action-card.tertiary {
    background: linear-gradient(135deg, #f4e4bc 0%, #e8d5b7 100%);
    border-color: #a0522d;
    color: #3d2817;
}

.action-card.tertiary:hover {
    background: linear-gradient(135deg, #e8d5b7 0%, #f4e4bc 100%);
}


.action-card h3 {
    color: inherit;
    font-size: 1.2rem;
    margin: 0.25rem 0;
    text-shadow: none;
    border: none;
    padding: 0;
}

.action-card.primary h3 {
    color: #f4e4bc;
}

.action-card p {
    color: inherit;
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
}

.action-card.primary p {
    color: #f4e4bc;
}

h2 {
    color: #6b3410;
    font-size: 2rem;
    margin: 1.5rem 0 1rem 0;
}

p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

/* Links */
a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #a0522d;
    text-decoration: underline;
}

/* Buttons */
button, input[type="submit"] {
    background: #8b4513;
    color: #f4e4bc;
    border: 2px solid #6b3410;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0.5rem 0;
}

button:hover, input[type="submit"]:hover {
    background: #a0522d;
    border-color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Forms */
form {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(244, 228, 188, 0.5);
    border-radius: 8px;
    border: 1px solid #8b4513;
}

label {
    display: block;
    margin: 0.5rem 0 0.25rem 0;
    color: #6b3410;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #8b4513;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #3d2817;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #a0522d;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: #f53606;
    color: #f4e4bc;
    text-align: center;
    padding: 1.5rem;
    border-top: 3px solid #5a2a0a;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px; /* More space for footer on mobile */
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-container > a:first-child {
        margin-right: 0;
        align-self: flex-start;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 1rem;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        max-width: 1200px;
        margin: 1rem auto;
        padding: 1.5rem;
        width: 90%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .home-hero {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }
    
    .home-hero h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .welcome-section {
        margin-top: 0.75rem;
    }
    
    .welcome-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .welcome-card h2 {
        font-size: 1.3rem;
    }
    
    .welcome-card p {
        font-size: 0.9rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .action-card {
        padding: 1rem 0.75rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .action-card h3 {
        font-size: 1.1rem;
    }
    
    .action-card p {
        font-size: 0.8rem;
    }
    
    footer {
        padding: 1rem;
    }
}

