/* Grand Slam Tracker Styles */

/* Upload Form Styles */
.hunt-submission-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 600px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-row textarea {
    height: 80px;
    resize: vertical;
}

.submit-btn {
    background: #8B4513;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #A0522D;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message Styles */
.upload-message {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Global Message Styles */
.tracker-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.tracker-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tracker-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Gallery Styles */
.species-gallery {
    margin: 20px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.photo-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.photo-details {
    padding: 15px;
}

.photo-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.photo-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.photo-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Reaction System */
.reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.reaction-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 3px;
}

.reaction-btn:hover {
    background: #e8f4f8;
    border-color: #8B4513;
}

.reaction-btn.reacted {
    background: #8B4513;
    color: white;
    transform: scale(1.1);
}

.flag-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    float: right;
}

.flag-btn:hover {
    background: #c82333;
}

.flag-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Modal Styles */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #bbb;
}

/* Admin Styles */
.admin-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.admin-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .hunt-submission-form {
        padding: 15px;
        margin: 15px 0;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .reactions {
        gap: 3px;
    }
    
    .reaction-btn {
        padding: 3px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row input,
    .form-row select,
    .form-row textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}