/* IWB WooCommerce Discord Integration - Frontend Styles */

/* My Account Discord Connection Page */
.iwb-discord-connection h3 {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.iwb-discord-not-connected,
.iwb-discord-connected {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iwb-discord-status-message {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.iwb-discord-status-success {
    background: linear-gradient(90deg, #43B581 0%, #5865F2 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.iwb-discord-status-success .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.iwb-discord-status-disconnected {
    background: linear-gradient(90deg, #ed4245 0%, #c03537 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.iwb-discord-status-disconnected .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Expected Roles - Horizontal Rainbow Layout */
.iwb-discord-expected-roles,
.iwb-discord-current-roles {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.iwb-discord-expected-roles h4,
.iwb-discord-current-roles h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #5865F2;
    text-align: center;
    font-size: 18px;
}

.iwb-discord-expected-roles ul,
.iwb-discord-current-roles ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.iwb-discord-expected-roles li,
.iwb-discord-current-roles li {
    padding: 10px 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.iwb-discord-expected-roles li:hover,
.iwb-discord-current-roles li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Rainbow colors for membership badges */
.iwb-discord-expected-roles li:nth-child(7n+1),
.iwb-discord-current-roles li:nth-child(7n+1) {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
}

.iwb-discord-expected-roles li:nth-child(7n+2),
.iwb-discord-current-roles li:nth-child(7n+2) {
    background: linear-gradient(135deg, #ff8800 0%, #cc6600 100%);
    color: #fff;
}

.iwb-discord-expected-roles li:nth-child(7n+3),
.iwb-discord-current-roles li:nth-child(7n+3) {
    background: linear-gradient(135deg, #ffff00 0%, #cccc00 100%);
    color: #000;
}

.iwb-discord-expected-roles li:nth-child(7n+4),
.iwb-discord-current-roles li:nth-child(7n+4) {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
}

.iwb-discord-expected-roles li:nth-child(7n+5),
.iwb-discord-current-roles li:nth-child(7n+5) {
    background: linear-gradient(135deg, #0088ff 0%, #0066cc 100%);
    color: #fff;
}

.iwb-discord-expected-roles li:nth-child(7n+6),
.iwb-discord-current-roles li:nth-child(7n+6) {
    background: linear-gradient(135deg, #8800ff 0%, #6600cc 100%);
    color: #fff;
}

.iwb-discord-expected-roles li:nth-child(7n+7),
.iwb-discord-current-roles li:nth-child(7n+7) {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    color: #fff;
}

.iwb-discord-expected-roles li:last-child,
.iwb-discord-current-roles li:last-child {
    border-bottom: none;
}

.iwb-discord-current-roles li .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.iwb-discord-no-roles {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iwb-discord-no-roles .description {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

/* User Info */
.iwb-discord-user-info {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.iwb-discord-user-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #5865F2;
    text-align: center;
}

.iwb-discord-user-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
}

.iwb-discord-user-info strong {
    color: #5865F2;
}

/* Buttons */
.iwb-discord-connect-button,
.iwb-discord-disconnect-button {
    background: linear-gradient(90deg, #5865F2 0%, #7289DA 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.iwb-discord-connect-button:hover {
    background: linear-gradient(90deg, #4752C4 0%, #5b6eae 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.6);
}

.iwb-discord-disconnect-button {
    background: linear-gradient(90deg, #ed4245 0%, #c03537 100%);
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.4);
}

.iwb-discord-disconnect-button:hover {
    background: linear-gradient(90deg, #c03537 0%, #a02b2d 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(237, 66, 69, 0.6);
}

.iwb-discord-auth-form,
.iwb-discord-disconnect-form {
    margin: 20px 0;
    text-align: center;
}

/* Description text */
.iwb-discord-connection .description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .iwb-discord-not-connected,
    .iwb-discord-connected {
        padding: 20px 15px;
    }

    .iwb-discord-expected-roles ul,
    .iwb-discord-current-roles ul {
        gap: 8px;
    }

    .iwb-discord-expected-roles li,
    .iwb-discord-current-roles li {
        padding: 8px 16px;
        font-size: 14px;
    }

    .iwb-discord-connect-button,
    .iwb-discord-disconnect-button {
        width: 100%;
        text-align: center;
    }
}