@import '../mixins';

.settings-container {
    padding: 20px 20px 20px 10px;
}

.settings-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.settings-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.settings-card {
    background-color: #ffffff;
    padding: 20px;
    padding-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);


    .card-top {
        display: flex;
        justify-content: space-between;
    }

    .card-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        .card-logo {
            width: 80px;
            height: auto;
        }

        .card-title {
            font-size: 18px;
            margin-bottom: 5px;
            margin-top: 15px;
            font-weight: 700;
            color: #190e0efc;
        }

        .card-description {
            text-align: left;
            color: #777777;
        }
    }

    .card-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;

        .account-status {
            font-size: 14px;
            margin-bottom: 10px;
            color: #00a86b;
            font-weight: 700;
            position: absolute;
        }
    }

    .card-bottom {
        margin-top: 10px;
        text-align: right;

        .settings-button {
            padding: 10px 15px;
            background-color: #7856fb;
            /* Adjust the color */
            color: #ffffff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s;
            font-weight: 700;
            font-size: 15px;
            text-decoration: none;

            span {
                margin-right: 5px;
            }

            &:hover {
                background-color: #4f21ff;
                /* Adjust the hover color */
            }

            &:focus {
                outline: none;
                box-shadow: none;
            }
        }

        .upcoming {
            padding: 5px 10px;
            background-color: #00a86b30;
            color: #00a86b;
            font-size: 13px;
            border-radius: 30px;
            font-weight: 700;
        }
    }
}

// settings-tab.scss
.settings-tab-container {
    padding: 20px;

    h2 {
        color: #ff9800;
        margin-bottom: 10px;
        font-size: 25px;
    }

    p {
        font-style: italic;
        color: #546e7a;
        font-size: 20px;
    }
}

// shortcode-tab.scss
.shortcode-tab-container {
    padding: 20px;

    h2 {
        color: #ff9800;
        margin-bottom: 10px;
        font-size: 25px;
    }

    p {
        font-style: italic;
        color: #546e7a;
        font-size: 20px;
    }
}

@include respond-to('medium') {
    .settings-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@include respond-to('small') {
    .settings-cards {
        grid-template-columns: repeat(1, 1fr);
    }
}

// Modern Notice Styles
.mhub-modern-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    position: relative;
    overflow: visible;

    &.warning {
        background: #FFF9EB;
        border-left: 4px solid #FFA800;

        .notice-icon {
            background: #FFA800;
        }
    }

    &.info {
        background: #F0F7FF;
        border-left: 4px solid #007CBA;

        .notice-icon {
            background: #007CBA;
        }
    }

    .mhub-notice-inner {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
    }

    .mhub-notice-icon-wrapper {
        flex-shrink: 0;
    }

    .notice-icon {
        color: #FFF;
        width: 32px;
        height: 32px;
        borderRadius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        .dashicons {
            font-size: 18px;
            width: 18px;
            height: 18px;
        }
    }

    .mhub-notice-content {
        h4 {
            margin: 0 0 4px 0;
            font-size: 16px;
            font-weight: 600;
            color: #1d2327;
        }

        p {
            margin: 0;
            color: #50575e;
            font-size: 14px;
            line-height: 1.5;
        }
    }

    .mhub-notice-close {
        background: transparent;
        border: 1px solid #c3c4c7;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        color: #8c8f94;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        position: relative;
        flex-shrink: 0;

        .dashicons {
            font-size: 20px;
            width: 20px;
            height: 20px;
        }

        &:hover {
            border-color: #8c8f94;
            color: #1d2327;
            background: #fff;
        }
    }

    .dropdown-menu {
        display: block;
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        background: #fff;
        border: 1px solid #c3c4c7;
        border-radius: 8px;
        z-index: 100;
        min-width: 180px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        text-align: left;

        .dropdown-header {
            padding: 12px 16px;
            font-size: 11px;
            text-transform: uppercase;
            color: #8c8f94;
            font-weight: 700;
            border-bottom: 1px solid #f0f0f1;
            background: #f6f7f7;
            letter-spacing: 0.5px;
        }

        .dropdown-item {
            padding: 12px 16px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            color: #1d2327;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .dashicons {
                font-size: 14px;
                opacity: 0.3;
            }

            &:hover {
                background: #f0f7ff;
                color: #007CBA;
            }
        }
    }

    @include respond-to('small') {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        .mhub-notice-inner {
            align-items: flex-start;
            gap: 12px;
        }

        .mhub-notice-content {
            h4 {
                font-size: 15px;
            }
            p {
                font-size: 13px;
            }
        }

        .dismiss-logic {
            width: 100%;
            display: flex;
            justify-content: flex-end;
        }

        .dropdown-menu {
            right: 0;
            left: auto;
        }
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}