/**
 * Drop Pins Styles
 * All pin-related styling in one organized file
 */

/* Quick Drop Pin Modal Styles */
.quick-pin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.quick-pin-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-pin-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-pin-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

/* Pin Form Styles */
.pin-location-group {
    position: relative;
}

.pin-gps-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 11px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-gps-btn:hover {
    background: #0056b3;
}

/* Pin Categories */
.pin-category-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* Pin Photo Upload */
.pin-photo-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.pin-photo-upload:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 123, 255, 0.05);
}

.pin-photo-preview {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.pin-photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* View Pins Container */
#pinsContainer {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.pin-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pin-item:hover {
    background: #f8f9fa;
}

.pin-item:last-child {
    border-bottom: none;
}

.pin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pin-type {
    font-weight: 600;
    color: var(--text-primary);
}

.pin-time {
    font-size: 12px;
    color: #999;
}

.pin-description {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pin-location {
    font-size: 12px;
    color: #666;
}

.pin-author {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.pin-photos-count {
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-blue);
}

/* Pin Urgency Levels */
.pin-urgency-low {
    border-left: 3px solid #4caf50;
}

.pin-urgency-medium {
    border-left: 3px solid #ff9800;
}

.pin-urgency-high {
    border-left: 3px solid #f44336;
}

.pin-urgency-critical {
    border-left: 3px solid #d32f2f;
    background: rgba(211, 47, 47, 0.05);
}

/* Pin Stats */
.pin-stats {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pin-stat {
    text-align: center;
}

.pin-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.pin-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Loading State */
.pin-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.pin-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Empty State */
.pins-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.pins-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pins-empty-message {
    font-size: 16px;
    margin-bottom: 8px;
}

.pins-empty-hint {
    font-size: 13px;
    color: #bbb;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-pin-header {
        padding: 16px;
    }

    .pin-item {
        padding: 12px;
    }

    #pinsContainer {
        max-height: 300px;
    }

    .pin-stats {
        flex-direction: column;
        gap: 12px;
    }
}