/* Shoutbox Styles */
.shoutbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shoutbox-container.collapsed {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c62828 0%, #8B0000 100%);
    box-shadow: 0 5px 20px rgba(198, 40, 40, 0.4);
}

.shoutbox-header {
    background: linear-gradient(135deg, #c62828 0%, #8B0000 100%);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.shoutbox-container.collapsed .shoutbox-header {
    padding: 0;
    width: 60px;
    height: 60px;
    justify-content: center;
}

.shoutbox-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.shoutbox-header h3 i {
    margin-right: 8px;
}

.shoutbox-container.collapsed .shoutbox-header h3 {
    font-size: 24px;
}

.shoutbox-container.collapsed .shoutbox-header h3 i {
    margin: 0;
}

.shoutbox-container.collapsed .shoutbox-title {
    display: none;
}

.shoutbox-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
}

.shoutbox-container.collapsed .shoutbox-toggle {
    display: none;
}

.shoutbox-toggle.collapsed {
    transform: rotate(180deg);
}

.shoutbox-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(15, 15, 25, 0.9);
}

.shoutbox-body::-webkit-scrollbar {
    width: 6px;
}

.shoutbox-body::-webkit-scrollbar-thumb {
    background: #c62828;
    border-radius: 3px;
}

.shoutbox-message {
    margin-bottom: 10px;
    padding: 8px;
    padding-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #c62828;
    animation: slideIn 0.3s ease;
    position: relative;
}

.shoutbox-message:hover {
    background: rgba(255, 255, 255, 0.06);
}

.shoutbox-message .reply-link {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 9px;
    color: #dc3545;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
    font-weight: 600;
    font-style: italic;
    text-decoration: underline;
}

.shoutbox-message .reply-link:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #e74c5c;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shoutbox-message .name {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 13px;
}

.shoutbox-message .time {
    float: right;
    font-size: 11px;
    color: #888;
}

.shoutbox-message .reply-to {
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.15), rgba(139, 0, 0, 0.05));
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    margin-top: 5px;
    font-size: 11px;
    color: #ccc;
    border-left: 3px solid #c62828;
    font-style: italic;
}

.shoutbox-message .reply-to .name {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 11px;
    font-style: normal;
}

.shoutbox-message .text {
    color: #ddd;
    font-size: 13px;
    margin-top: 4px;
    word-wrap: break-word;
    padding-right: 40px;
}

.shoutbox-form {
    padding: 10px;
    background: rgba(15, 15, 25, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shoutbox-form input,
.shoutbox-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 13px;
}

.shoutbox-form input::placeholder,
.shoutbox-form textarea::placeholder {
    color: #888;
}

.shoutbox-form textarea {
    resize: none;
    height: 50px;
}

.shoutbox-form button {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #c62828 0%, #8B0000 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.shoutbox-form button:hover {
    transform: scale(1.02);
}

.shoutbox-container.collapsed .shoutbox-body,
.shoutbox-container.collapsed .shoutbox-form {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shoutbox-container {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    .shoutbox-container.collapsed {
        width: 60px;
        height: 60px;
        right: 10px;
        left: auto;
    }
}