/* TikTok Login Plugin - Frontend Styles */

/* ========= BUTTONS ========= */
.tiktok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none !important;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.tiktok-btn-full { width: 100%; }

.tiktok-btn-black {
    background: #000;
    color: #fff !important;
    border-color: #000;
}
.tiktok-btn-black:hover {
    background: #222;
    border-color: #222;
    color: #fff !important;
}

.tiktok-btn-white {
    background: #fff;
    color: #000 !important;
    border-color: #e0e0e0;
}
.tiktok-btn-white:hover {
    background: #f5f5f5;
    color: #000 !important;
}

.tiktok-btn-gradient {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: #fff !important;
    border: none;
}
.tiktok-btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}

.tiktok-btn-outline {
    background: transparent;
    color: #666 !important;
    border-color: #ddd;
}
.tiktok-btn-outline:hover {
    background: #f5f5f5;
    color: #333 !important;
}

.tiktok-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========= LOGGED IN STATE ========= */
.tiktok-logged-in {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 50px;
}

.tiktok-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.tiktok-username {
    font-weight: 600;
    font-size: 14px;
}

.tiktok-logout-btn {
    font-size: 13px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}
.tiktok-logout-btn:hover { color: #333; }

/* ========= LOGIN FORM WIDGET ========= */
.tiktok-login-form-widget {
    max-width: 380px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tiktok-login-form-header {
    background: linear-gradient(135deg, #010101, #2d2d2d);
    color: #fff;
    text-align: center;
    padding: 32px 24px 24px;
}

.tiktok-brand-icon {
    width: 48px;
    height: 48px;
    fill: #fff;
    margin-bottom: 12px;
}

.tiktok-login-form-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.tiktok-login-form-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.tiktok-login-form-body {
    padding: 24px;
}

.tiktok-login-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* ========= PROFILE WIDGET ========= */
.tiktok-profile-widget {
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tiktok-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #010101, #2d2d2d);
    color: #fff;
}

.tiktok-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.tiktok-profile-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.tiktok-profile-id {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.tiktok-profile-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
}
