/**
 * Steam DL Frontend Styles
 */

/* Token Copy Widget */
.steamdl-copy-widget {
    position: relative;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    gap: 10px;
}

.steamdl-copy-input {
    flex: 1;
    padding: 10px;
    font-size: 18px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.steamdl-copy-button {
    padding: 10px 15px;
    background: #5784f5;
    color: #fff;
    font-size: 18px;
    border: none;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.steamdl-copy-button:hover {
    background: #4a73d9;
}

.steamdl-copy-button:active {
    background: #809ce2;
}

.steamdl-copy-button svg {
    filter: invert(99%) sepia(0%) saturate(3555%) hue-rotate(233deg) brightness(110%) contrast(91%);
}

/* Copy notification */
.steamdl-copy-widget.active .steamdl-copy-button::before {
    content: "کپی شد";
    position: absolute;
    top: -45px;
    right: 10px;
    background: #5c81dc;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 15px;
    display: block;
    animation: fadeInOut 2.5s ease;
}

.steamdl-copy-widget.active .steamdl-copy-button::after {
    content: "";
    position: absolute;
    top: -20px;
    right: 25px;
    width: 10px;
    height: 10px;
    background: #5c81dc;
    transform: rotate(45deg);
    display: block;
    animation: fadeInOut 2.5s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* IP Input */
.steamdl-ip-input {
    direction: ltr;
    text-align: left;
}

/* Notice box */
.steamdl-notice {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.6;
}

/* Info notice (blue) */
.steamdl-notice-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Warning notice (yellow) - legacy */
.steamdl-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* Error message */
.steamdl-error {
    margin: 0 0 6px 0;
    font-size: 1.12rem;
    color: #8b0f0f;
}

/* Token buttons */
.steamdl-show-token,
.steamdl-copy-token {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .steamdl-copy-widget {
        flex-direction: column;
    }
    
    .steamdl-copy-button {
        width: 100%;
    }
}

