/**
 * Trial System Styles
 * Floating indicator and modal styles
 */

/* Trial Button - Hidden by default, shown via JavaScript if enabled */
.trialButton {
    display: none !important;
}

.trialButton.trial-enabled {
    display: inline-flex !important;
}

/* Trial Creation Modal */
#trialCreationModal .form-group {
    margin-bottom: 1rem;
}

#trialCreationModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#trialCreationModal .form-control {
    width: 100%;
}

#trialCreationModal .alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

#trialCreationModal .alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

#trialCreationModal .alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Floating Trial Indicator */
.trial-floating-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: #1a1f27;
    border: 1px solid rgba(21, 147, 237, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideInUp 0.3s ease-out;
    font-family: "Outfit", sans-serif;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.trial-indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(21, 147, 237, 0.15) 0%, rgba(21, 147, 237, 0.05) 100%);
    border-bottom: 1px solid rgba(21, 147, 237, 0.2);
}

.trial-indicator-title {
    font-size: 14px;
    font-weight: 500;
    color: #C0C8D7;
}

.trial-indicator-controls {
    display: flex;
    gap: 4px;
}

.trial-indicator-minimize,
.trial-indicator-close {
    background: transparent;
    border: none;
    color: #99A4B8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: monospace;
    font-weight: bold;
}

.trial-indicator-minimize:hover,
.trial-indicator-close:hover {
    background: rgba(21, 147, 237, 0.1);
    color: #1593ED;
}

/* Minimized state */
.trial-floating-indicator.minimized {
    width: 200px;
}

.trial-floating-indicator.minimized .trial-indicator-body {
    display: none;
}

.trial-floating-indicator.minimized .trial-indicator-header {
    border-bottom: none;
}

.trial-indicator-body {
    padding: 16px;
}

.trial-game-name {
    font-size: 16px;
    font-weight: 600;
    color: #C0C8D7;
    margin-bottom: 10px;
}

.trial-countdown {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(21, 147, 237, 0.08);
    border: 1px solid rgba(21, 147, 237, 0.15);
    border-radius: 6px;
}

.trial-countdown-time {
    font-size: 24px;
    font-weight: 600;
    color: #1593ED;
}

.trial-countdown-label {
    font-size: 13px;
    color: #99A4B8;
}

.trial-server-info {
    margin-bottom: 14px;
}

.trial-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(153, 164, 184, 0.1);
}

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

.trial-info-label {
    font-size: 13px;
    color: #99A4B8;
    font-weight: 400;
}

.trial-info-value {
    font-size: 13px;
    color: #C0C8D7;
    font-weight: 500;
}

.trial-copyable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.trial-copyable:hover {
    background: rgba(21, 147, 237, 0.1);
    color: #1593ED;
}

.trial-copy-icon {
    opacity: 0.6;
}

.trial-instructions {
    font-size: 12px;
    color: #99A4B8;
    background: rgba(21, 147, 237, 0.05);
    border: 1px solid rgba(21, 147, 237, 0.1);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.trial-manage-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #1593ED;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
    border: none;
}

.trial-manage-btn:hover {
    background: #1277c5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 147, 237, 0.3);
    color: white;
    text-decoration: none;
}

/* Copied notification */
.trial-copied-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1593ED;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: "Outfit", sans-serif;
    box-shadow: 0 4px 16px rgba(21, 147, 237, 0.4);
    border: 1px solid rgba(21, 147, 237, 0.3);
    z-index: 10000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trial-floating-indicator {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .trial-floating-indicator {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .trial-countdown-time {
        font-size: 24px;
    }
}

/* Grace period styles */
.trial-indicator-grace {
    border-color: #f44336 !important;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3) !important;
}

.trial-indicator-grace .trial-indicator-header {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.trial-indicator-expiring {
    border-color: #ff9800 !important;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3) !important;
}

.trial-indicator-expiring .trial-indicator-header {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.trial-countdown-grace .trial-countdown-time {
    color: #f44336;
}

.trial-countdown-grace .trial-countdown-label {
    color: #ef9a9a;
}

.trial-grace-message {
    font-size: 12px;
    color: #ef9a9a;
    text-align: center;
    padding: 6px 0;
    line-height: 1.4;
}

.trial-extend-btn,
.trial-extend-btn-urgent {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin: 10px 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trial-extend-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.trial-extend-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.trial-extend-btn-urgent {
    background: linear-gradient(135deg, #00C853 0%, #00B341 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    animation: pulse-extend 2s infinite;
}

.trial-extend-btn-urgent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

@keyframes pulse-extend {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(0, 200, 83, 0.5); }
}

