/* ===================================
   PLATFORM CONNECTIONS & SYNC
   Стили для синхронизации платформ
   =================================== */

/* Platform Connections Section (in Profile) */
.platform-connections {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.connections-header {
    text-align: center;
    margin-bottom: 15px;
}

.connections-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.connections-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 5px;
}

.connection-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#platformHashInput {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

#platformHashInput:focus {
    outline: none;
    border-color: rgba(76, 175, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

#platformHashInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.connect-platform-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(76, 175, 255, 0.3), rgba(138, 43, 226, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.connect-platform-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 255, 0.5), rgba(138, 43, 226, 0.5));
    transform: scale(1.05);
}

.connect-platform-btn:active {
    transform: scale(0.95);
}

.connected-platforms {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connected-platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
}

.platform-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.platform-disconnect-btn {
    padding: 5px 10px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-disconnect-btn:hover {
    background: rgba(244, 67, 54, 0.4);
}

/* ===================================
   SYNC MODAL
   =================================== */

.sync-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.sync-warning {
    padding: 12px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.sync-warning-small {
    padding: 10px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
}

/* Profile Comparison */
.profiles-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-card {
    flex: 1;
    min-width: 180px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.profile-platform {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.profile-stats-mini {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stat-mini {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.profile-pet-info {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pet-mini-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.pet-mini-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3px;
}

.pet-mini-level {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.vs-divider {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Sync Options */
.sync-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sync-options h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.sync-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sync-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(76, 175, 255, 0.5);
    transform: translateX(3px);
}

.sync-option-btn:active {
    transform: translateX(1px);
}

.option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    text-align: left;
}

.option-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3px;
}

.option-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Special colors for different options */
.sync-option-btn.transfer-all {
    border-color: rgba(33, 150, 243, 0.3);
}

.sync-option-btn.transfer-all:hover {
    border-color: rgba(33, 150, 243, 0.6);
    background: rgba(33, 150, 243, 0.1);
}

.sync-option-btn.transfer-pet {
    border-color: rgba(76, 175, 80, 0.3);
}

.sync-option-btn.transfer-pet:hover {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.1);
}

.sync-option-btn.merge-profiles {
    border-color: rgba(156, 39, 176, 0.3);
}

.sync-option-btn.merge-profiles:hover {
    border-color: rgba(156, 39, 176, 0.6);
    background: rgba(156, 39, 176, 0.1);
}

.sync-option-btn.keep-telegram {
    border-color: rgba(255, 152, 0, 0.3);
}

.sync-option-btn.keep-telegram:hover {
    border-color: rgba(255, 152, 0, 0.6);
    background: rgba(255, 152, 0, 0.1);
}
