/* User Interaction Components Styles for Silksong Map */
/* Covers sharing buttons, like system, comments, and ratings */

/* Share System */
.share-container {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--shadow-gradient), rgba(43, 43, 82, 0.9));
    border-radius: 12px;
    border: 2px solid var(--needle-silver);
}

.share-buttons h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--silk-white);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--hornet-gradient);
    border: none;
    border-radius: 8px;
    color: var(--silk-white);
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 62, 29, 0.4);
    background: linear-gradient(135deg, #e04a28, var(--hornet-red));
}

.share-btn:active {
    transform: translateY(-1px);
}

.share-btn .share-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.share-btn span:last-child {
    font-size: 0.9rem;
}

/* Platform-specific colors */
.share-btn.twitter:hover { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.share-btn.facebook:hover { background: linear-gradient(135deg, #1877f2, #1467d0); }
.share-btn.reddit:hover { background: linear-gradient(135deg, #ff5700, #e54d00); }
.share-btn.discord:hover { background: linear-gradient(135deg, #7289da, #5b6eae); }
.share-btn.link:hover { background: linear-gradient(135deg, #6c757d, #5a6268); }
.share-btn.email:hover { background: linear-gradient(135deg, #28a745, #218838); }

.share-stats {
    text-align: center;
    color: var(--silk-white);
    font-style: italic;
    opacity: 0.8;
}

.share-count {
    font-family: 'Cinzel', serif;
}

/* Like System */
.like-container {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--silk-gradient);
    border-radius: 12px;
    border: 2px solid var(--pharloom-gold);
}

.like-system h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--shadow-purple);
}

.like-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--pharloom-gradient);
    border: none;
    border-radius: 12px;
    color: var(--silk-white);
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.like-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.05); }
}

.like-btn .like-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.like-btn .like-text {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.like-btn .like-count {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    min-width: 30px;
    text-align: center;
}

.helpful-btn:hover {
    background: linear-gradient(135deg, #28a745, #218838);
}

.amazing-btn:hover {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.user-feedback {
    text-align: center;
    margin-top: 1rem;
}

.feedback-text {
    color: var(--shadow-purple);
    font-style: italic;
    opacity: 0.8;
}

/* Comment System */
.comment-container {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--texture-silk);
    border-radius: 12px;
    border: 2px solid var(--moss-green);
}

.comment-system h4 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--shadow-purple);
}

.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--needle-silver);
    border-radius: 8px;
    background: var(--silk-white);
    color: var(--shadow-purple);
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--hornet-red);
    box-shadow: 0 0 10px rgba(199, 62, 29, 0.3);
}

.comment-form textarea::placeholder {
    color: var(--shadow-purple);
    opacity: 0.6;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.character-count {
    color: var(--needle-silver);
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

.comment-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--hornet-gradient);
    border: none;
    border-radius: 8px;
    color: var(--silk-white);
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    background: linear-gradient(135deg, #e04a28, var(--hornet-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 62, 29, 0.4);
}

/* Comments List */
.comments-list {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid var(--hornet-red);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--needle-silver);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--shadow-purple);
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.comment-time {
    color: var(--needle-silver);
    font-size: 0.9rem;
    opacity: 0.8;
}

.comment-content p {
    color: var(--shadow-purple);
    line-height: 1.6;
    margin: 0;
}

.comment-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--coral-pink);
    border-radius: 20px;
    color: var(--coral-pink);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-like-btn:hover {
    background: var(--coral-pink);
    color: var(--silk-white);
    transform: scale(1.05);
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: var(--needle-silver);
    font-style: italic;
}

/* Rating System */
.rating-container {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--pharloom-gradient);
    border-radius: 12px;
    text-align: center;
}

.rating-system h4 {
    margin-bottom: 1.5rem;
    color: var(--silk-white);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.star:hover {
    transform: scale(1.3);
    opacity: 1;
}

.rating-feedback {
    color: var(--silk-white);
}

.rating-text {
    margin-bottom: 1rem;
    font-style: italic;
}

.rating-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.avg-rating, .total-ratings {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--silk-white);
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #218838);
    border-left: 4px solid #1e7e34;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-left: 4px solid #bd2130;
}

.notification-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border-left: 4px solid #d39e00;
    color: var(--shadow-purple);
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border-left: 4px solid #117a8b;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .like-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .like-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .comment-submit {
        width: 100%;
        justify-content: center;
    }
    
    .rating-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .share-grid {
        grid-template-columns: 1fr;
    }
    
    .share-container,
    .like-container,
    .comment-container,
    .rating-container {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .comment-form textarea {
        min-height: 100px;
    }
    
    .star {
        font-size: 1.5rem;
    }
}