/**
 * Admin CSS styles for Add as Preferred Source
 *
 * @since      1.0.0
 *
 * @package    Add_As_Preferred_Source
 * @subpackage Add_As_Preferred_Source/admin/css
 */

/* Settings Page Layout */
.add-as-preferred-source-settings-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.add-as-preferred-source-settings-content {
    flex: 2;
    margin-right: 20px;
    min-width: 500px;
}

.add-as-preferred-source-preview {
    flex: 1;
    min-width: 350px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.add-as-preferred-source-sidebar {
    flex: 1;
    min-width: 250px;
}

/* Mobile Preview */
.preview-container {
    margin: 20px 0;
}

.mobile-device {
    border: 8px solid #333;
    border-radius: 20px;
    padding: 10px 5px;
    margin: 0 auto;
    max-width: 400px;
    background: #fff;
    height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.preferred-source-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 0;
    right: 0;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.banner-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    margin-right: 12px;
}

.google-button-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.google-button-image img {
    height: 28px;
    width: auto;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
    color: inherit;
}

/* Demo content */
.demo-content {
    padding: 60px 20px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.demo-content h3 {
    margin-top: 0;
    color: #333;
}

/* Sidebar Box */
.add-as-preferred-source-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.add-as-preferred-source-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.add-as-preferred-source-box ul {
    margin-left: 20px;
    list-style-type: disc;
}

@media screen and (max-width: 1100px) {
    .add-as-preferred-source-settings-wrapper {
        flex-direction: column;
    }

    .add-as-preferred-source-settings-content,
    .add-as-preferred-source-preview,
    .add-as-preferred-source-sidebar {
        min-width: 100%;
        margin-right: 0;
    }
}

/* Tabs */
.adasprso-nav-tab-wrapper {
    margin-bottom: 20px !important;
    padding-top: 10px;
}

/* Inline Preview */

.adasprso-inline-preview-box {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid #72aee6;
    padding: 15px;
}

.adasprso-inline-preview-box h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.adasprso-inline-preview-container {
    padding: 30px !important;
}

/* Layout 2 Preview Styles */
.adasprso-inline-layout-2 {
    /* Gradient Background */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;

    /* Flex box */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
}

.adasprso-inline-text-wrapper {
    flex: 1;
    text-align: left;
}

.adasprso-inline-title-mock {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    line-height: 1.4;
    margin-bottom: 4px;
}

.adasprso-inline-subtitle-mock {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #515761;
}

.mock-google-btn-wrapper img {
    height: 40px;
    width: auto;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}