/* Duck Tracker Plugin Styles - Clean & Minimal */

/* Reset and Base Styles */
.duck-form-container, .duck-leaderboard-container, .duck-dashboard-container, .duck-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Styles */
.duck-sighting-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 30px;
}

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

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

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #666;
}

.submit-button {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover {
    background: #555;
}

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

/* Form Messages */
.form-message {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid;
}

.form-message.error {
    background: #ffeaea;
    border-color: #d63638;
    color: #d63638;
}

.form-message.info {
    background: #e7f3ff;
    border-color: #0073aa;
    color: #0073aa;
}

.field-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
}

.error {
    border-color: #d63638 !important;
}

/* Leaderboard Styles */
.duck-leaderboard-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .duck-leaderboard-container {
        grid-template-columns: 1fr;
    }
}

.leaderboard-section h2,
.submission-section h2 {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.leaderboard-list {
    margin-bottom: 20px;
}

.leaderboard-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.leaderboard-item.top-three {
    border-left: 4px solid #333;
}

.leaderboard-item .rank {
    font-size: 24px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.leaderboard-item .duck-info {
    flex: 1;
}

.leaderboard-item .duck-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 500;
}

.leaderboard-item .duck-info h3 a {
    color: #333;
    text-decoration: none;
}

.leaderboard-item .duck-info h3 a:hover {
    text-decoration: underline;
}

.leaderboard-item .duck-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: #333;
    transition: width 0.3s ease;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 500;
}

.stat-box p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

.dashboard-map-container {
    margin: 30px 0;
}

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

.duck-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

.duck-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
}

.duck-card h4 a {
    color: #333;
    text-decoration: none;
}

.duck-card h4 a:hover {
    text-decoration: underline;
}

.duck-card-stats {
    font-size: 14px;
    color: #666;
}

.duck-card-stats span {
    display: block;
    margin-bottom: 5px;
}

.duck-card-stats .not-found {
    color: #999;
    font-style: italic;
}

/* Duck Page Styles */
.duck-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.duck-header h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 500;
}

.duck-header p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.duck-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.duck-stats .stat {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.duck-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .duck-content {
        grid-template-columns: 1fr;
    }
}

.duck-map-section h2,
.duck-sightings-section h2 {
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

.sightings-list {
    max-height: 500px;
    overflow-y: auto;
}

.sighting-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
}

.sighting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sighting-header strong {
    font-size: 16px;
    color: #333;
}

.sighting-date {
    font-size: 14px;
    color: #666;
}

.sighting-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.sighting-comment {
    font-style: italic;
    color: #555 !important;
}

.sighting-photo {
    margin-top: 15px;
}

.sighting-photo img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.duck-submit-section {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #ddd;
    text-align: center;
}

.duck-submit-section h2 {
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.duck-submit-section p {
    color: #666;
    margin-bottom: 30px;
}

/* Map Styles */
#duck-journey-map,
#dashboard-map,
#location-preview-map {
    border: 1px solid #ddd;
}

.duck-marker {
    background: none;
    border: none;
    font-size: 16px;
}

.duck-popup {
    font-size: 14px;
    line-height: 1.4;
}

.duck-popup strong {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .duck-form-container,
    .duck-leaderboard-container,
    .duck-dashboard-container,
    .duck-page-container {
        padding: 15px;
    }
    
    .duck-header h1 {
        font-size: 2em;
    }
    
    .duck-stats {
        gap: 15px;
    }
    
    .duck-stats .stat {
        font-size: 14px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .duck-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .leaderboard-item .rank {
        min-width: auto;
    }
}

/* Print Styles */
@media print {
    .duck-submit-section,
    .submit-button,
    .form-message {
        display: none !important;
    }
    
    .duck-page-container,
    .duck-leaderboard-container {
        max-width: none;
        padding: 0;
    }
    
    .sighting-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
