/* BWBirdApp Dark Modern Styles */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Dark wave pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

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

/* Header */
header {
    background-color: #000000;
    color: white;
    padding: 0;
    margin-bottom: 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    gap: 40px;
}

.logo {
    max-height: 60px;
    width: auto;
    max-width: 200px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-btn:hover {
    color: #cccccc;
}

.nav-btn.active {
    color: #ffffff;
    font-weight: 600;
}

/* Main Content */
.page {
    display: none;
    min-height: 60vh;
    padding: 40px 0;
}

.page.active {
    display: block;
}

/* Home Page */
.home-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.home-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Capture Page */
.capture-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.capture-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.capture-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.capture-option-btn {
    background: #333333;
    border: none;
    border-radius: 15px;
    color: white;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.capture-option-btn:hover {
    background: #444444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.capture-option-btn.active {
    background: #555555;
}



#image-input {
    display: none;
}

.image-preview {
    max-width: 500px;
    max-height: 400px;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.identify-btn {
    background: #333333;
    border: none;
    border-radius: 10px;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}

.identify-btn:hover:not(:disabled) {
    background: #444444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.identify-btn:disabled {
    background: #222222;
    color: #666666;
    cursor: not-allowed;
}

/* Results Section */
.result-section {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.identification-result {
    background: #333333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.identification-result h4 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.species-info {
    margin-bottom: 25px;
}

.species-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #cccccc;
}

.virginia-info {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.virginia-info h5 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
}

.virginia-info p {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #cccccc;
}

.add-to-pokedex-btn {
    background: #333333;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.add-to-pokedex-btn:hover {
    background: #444444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Catalogue Page */
.catalogue-content {
    max-width: 1000px;
    margin: 0 auto;
}

.catalogue-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ffffff;
    font-family: 'Georgia', serif;
    text-align: center;
}

.sightings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sighting-card {
    background: #333333;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.sighting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sighting-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.sighting-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.sighting-card p {
    color: #cccccc;
    margin-bottom: 5px;
}

/* Friends Page */
.friends-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.friends-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.friends-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.friends-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Settings Page */
.settings-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.settings-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.settings-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Home Page Styles */
.home-content {
    text-align: center;
    padding: 40px 20px;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.home-content p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.action-btn {
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.action-btn.primary {
    background: #27ae60;
    color: white;
}

.action-btn.primary:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #333333;
    color: white;
    border: 2px solid #555555;
}

.action-btn.secondary:hover {
    background: #444444;
    transform: translateY(-2px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: #333333;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 15px;
    }
    
    .logo {
        max-height: 50px;
    }
    
    .home-content h1,
    .capture-content h1,
    .friends-content h1,
    .settings-content h1 {
        font-size: 2rem;
    }
    
    .capture-option-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* Login Styles */
.login-section {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-section h2 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.login-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-section input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-section input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.login-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 14px;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.login-prompt button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-prompt button:hover {
    background: #0056b3;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Auth Modal Styles */
.auth-modal[hidden]{ display:none !important; }
.auth-modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.6); z-index:2000; }
.auth-card{ background:#1f1f1f; color:#fff; border-radius:12px; padding:20px; width:min(420px, 92vw); box-shadow:0 10px 30px rgba(0,0,0,.4); }
.auth-card label{ display:block; font-size:.9rem; margin:10px 0 4px; }
.auth-card input{ width:100%; padding:10px; border-radius:8px; border:1px solid #3a3a3a; background:#121212; color:#fff; }
.auth-card button[type=submit]{ margin-top:12px; width:100%; padding:10px; border-radius:8px; border:0; background:#4e9cff; color:#111; font-weight:600; cursor:pointer; }
.auth-close{ float:right; border:0; background:transparent; color:#aaa; font-size:22px; cursor:pointer; }
.auth-error{ color:#ff8b8b; margin-top:8px; }
.auth-alt{ font-size:.9rem; margin-top:10px; color:#bbb; }
.auth-alt a{ color:#fff; }

/* Header Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-buttons .nav-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Modal Styles */
.modal[hidden] { 
    display: none !important; 
}

.modal:not([hidden]) { 
    display: flex; 
}