/* Header container for spotted page */
.spotted-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.spotted-header h2 {
    font-size: 28px;
    color: #00587C;
    margin: 0;
}

.spotted-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Section Spotted */
.spotted-section {
    padding: 40px 0 60px;
    background: #f5f5f5;
    min-height: 500px;
}

/* Intro */
.spotted-intro {
    margin-bottom: 40px;
}

.intro-card {
    background: linear-gradient(135deg, #009FDA 0%, #7AC142 100%);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.intro-card h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.intro-card p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.intro-card .btn {
    background: #fff;
    color: #00587C;
    padding: 12px 30px;
    font-size: 16px;
}

.intro-card .btn:hover {
    background: #f0f0f0;
}

/* Posts container */
.spotted-posts {
    max-width: 800px;
    margin: 0 auto;
}

.spotted-post {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.spotted-post:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.post-author i {
    color: #009FDA;
    font-size: 20px;
}

.post-date {
    color: #999;
    font-size: 14px;
}

.post-content {
    margin-bottom: 20px;
}

.post-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-like,
.btn-comment,
.btn-message {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
}

.btn-like:hover,
.btn-comment:hover {
    background: #f0f0f0;
    color: #009FDA;
}

/* État liked du bouton */
.btn-like.liked {
    color: #e74c3c;
}

.btn-like.liked i {
    color: #e74c3c;
}

.btn-like.liked:hover {
    background: #ffe5e5;
    color: #c0392b;
}

/* Animation pour le like */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.btn-like.liked i {
    animation: likeAnimation 0.3s ease;
}

.btn-message {
    color: #28a745;
}

.btn-message:hover {
    background: #f0f0f0;
    color: #218838;
}

.btn-like i,
.btn-comment i,
.btn-message i {
    font-size: 18px;
}

/* Commentaires */
.post-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

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

.comment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

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

.comment-header strong {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-author i {
    margin-right: 5px;
    color: #009FDA;
}

.comment-content {
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.no-posts i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    color: #666;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.form-row input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    min-height: 60px;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form .btn-sm {
    align-self: flex-end;
    padding: 8px 20px;
}

/* Formulaire Spotted */
.spotted-form {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.anonymous-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input:checked ~ .checkmark {
    background: #7AC142;
    border-color: #7AC142;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.anonymous-info {
    margin: 0;
    font-size: 14px;
    color: #666;
    padding-left: 34px;
}

.spotted-rules {
    background: #e6f7ff;
    border-left-color: #009FDA;
}

/* Additional button styles */
.btn-primary {
    background: #00587C;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #004a68;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 88, 124, 0.3);
}

.btn-secondary {
    background: #00587C;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #009FDA;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Form controls */
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #009FDA;
}

/* Responsive */
@media (max-width: 768px) {
    .spotted-feed {
        padding: 0 10px;
    }
    
    .spotted-post {
        padding: 20px 15px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .intro-card {
        padding: 30px 20px;
    }
}

/* Styles spécifiques pour mobiles étroits (425-430px) */
@media (max-width: 480px) {
    .spotted-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .spotted-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .spotted-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    .spotted-feed {
        padding: 0 5px;
    }
    
    .spotted-post {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-image {
        margin: 10px -10px;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .post-actions button {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 14px;
        padding: 8px;
    }
    
    .comments-section {
        margin: 15px -10px 0;
        padding: 15px 10px;
    }
    
    .comment-form textarea {
        font-size: 14px;
        padding: 8px;
    }
    
    .intro-card {
        padding: 25px 15px;
    }
    
    .intro-card h2 {
        font-size: 22px;
    }
    
    .intro-card p {
        font-size: 14px;
    }
}