/* BWBirdApp Collection Page 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;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

header p {
    color: #cccccc;
    font-size: 1.2rem;
}

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

.bird-tile {
    background: #333333;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bird-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.bird-tile.tile--found {
    /* Normal styling for found birds */
}

.bird-tile.tile--unfound {
    filter: grayscale(100%);
    opacity: 0.55;
}

.bird-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bird-placeholder {
    width: 100%;
    height: 200px;
    background: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.bird-info {
    padding: 20px;
}

.bird-info h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.bird-info p {
    color: #cccccc;
    font-style: italic;
    margin-bottom: 10px;
}

.count {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status {
    color: #999999;
    font-size: 0.9rem;
}

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

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #333333;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #cccccc;
}

.modal h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.sighting-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #444444;
    border-radius: 10px;
}

.sighting-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.sighting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 0.9rem;
}

.sighting-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sighting-date {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .sighting-item {
        flex-direction: column;
        text-align: center;
    }
    
    .sighting-image {
        width: 100%;
        height: 150px;
        margin: 0 auto;
    }
}
