/* SweepWidget WordPress Plugin - Admin Styles */

/* === Wrapper === */
#sweepwidget_wrapper {
    width: 100%;
    margin-left: -20px;
    padding-right: 20px;
    min-height: 800px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    float: left;
}

#sweepwidget_wrapper * {
    box-sizing: border-box;
}

#sweepwidget_wrapper_inner {
    width: 100%;
    padding: 0 32px 40px;
    box-sizing: border-box;
    float: left;
}

/* === Hero Section === */
#sweepwidget_wrapper #sweepwidget_hero {
    width: 100%;
    margin: 0;
    padding: 40px 0 32px;
    text-align: center;
    background: linear-gradient(180deg, #fafaff 0%, #fff 100%);
    border-bottom: 1px solid #e8e8e8;
    float: left;
}

/* === Header === */
#sweepwidget_wrapper #sweepwidget_header {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    text-align: center;
    float: left;
}

#sweepwidget_wrapper #sweepwidget_header img {
    width: 100%;
    max-width: 170px;
    border: none;
    outline: none;
}

/* === Welcome Content === */
#sweepwidget_wrapper .sw-welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

#sweepwidget_wrapper .sw-welcome-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 28px;
    line-height: 22px;
}

/* === CTA Button === */
#sweepwidget_wrapper .sw-welcome-cta {
    margin: 0 0 32px;
}

#sweepwidget_wrapper .sw-welcome-btn {
    display: inline-block;
    padding: 15px 34px;
    background: #4a3aff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(74, 58, 255, 0.15), 0 4px 12px rgba(74, 58, 255, 0.15);
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

#sweepwidget_wrapper .sw-welcome-btn:hover {
    background: #3d2ee6;
    color: #fff;
    box-shadow: 0 2px 4px rgba(74, 58, 255, 0.2), 0 8px 20px rgba(74, 58, 255, 0.2);
    transform: translateY(-1px);
}

/* === Links === */
#sweepwidget_wrapper .sw-links {
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    text-align: center;
    line-height: 1.8;
}

#sweepwidget_wrapper .sw-links a {
    color: #4a3aff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

#sweepwidget_wrapper .sw-links a:hover {
    color: #3d2ee6;
    text-decoration: underline;
}

#sweepwidget_wrapper .sw-link-sep {
    color: #d0d0d0;
    margin: 0 8px;
}

#sweepwidget_wrapper .sw-links-secondary {
    margin: 0;
}

#sweepwidget_wrapper .sw-links-secondary a {
    color: #888;
    font-weight: 400;
}

#sweepwidget_wrapper .sw-links-secondary a:hover {
    color: #4a3aff;
}

#sweepwidget_wrapper .sw-links-secondary .sw-link-sep {
    color: #ddd;
}

/* === Section Headers === */
#sweepwidget_wrapper .user_sub_header {
    width: 100%;
    margin: 0;
    padding: 24px 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1e1e1e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    float: left;
}

#sweepwidget_wrapper .user_sub_header .sw-count {
    color: #4a3aff;
    font-weight: 700;
}

/* === Giveaway Cards === */
#sweepwidget_wrapper .user_competitions_each_holder {
    width: 100%;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
    border-radius: 0;
    float: left;
}

#sweepwidget_wrapper .user_competitions_each_holder:last-of-type {
    border-bottom: none;
}

#sweepwidget_wrapper .user_competitions_each_holder_inner {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: flex-start;
}

#sweepwidget_wrapper .user_competitions_each_holder_l {
    width: 100px;
    min-width: 100px;
    margin-right: 20px;
    margin-bottom: 0;
}

#sweepwidget_wrapper .user_competitions_each_holder_l img {
    width: 100px;
    height: 100px;
    max-width: none;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

#sweepwidget_wrapper .sw-placeholder-img {
    width: 100px;
    height: 100px;
    background: #f8f8fa;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sweepwidget_wrapper .user_competitions_each_holder_r {
    flex: 1;
    min-width: 0;
    width: auto;
}

/* Card Title */
#sweepwidget_wrapper .user_competitions_each_header {
    width: 100%;
    padding: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.35;
    float: left;
}

/* === Action Buttons === */
#sweepwidget_wrapper .user_competitions_each_links {
    width: 100%;
    margin: 2px 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    float: left;
}

#sweepwidget_wrapper .user_competitions_each_links a {
    margin: 0;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.15s ease;
    float: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    cursor: pointer;
}

/* Primary action button */
#sweepwidget_wrapper .user_competitions_each_links a.sw-btn-primary {
    background: #4a3aff !important;
    color: #fff !important;
    border: 1.5px solid #4a3aff !important;
}

#sweepwidget_wrapper .user_competitions_each_links a.sw-btn-primary:hover {
    background: #3d2ee6 !important;
    border-color: #3d2ee6 !important;
    color: #fff !important;
}

/* Outlined action button */
#sweepwidget_wrapper .user_competitions_each_links a.sw-btn-outline {
    background: #fff !important;
    color: #555 !important;
    border: 1.5px solid #ddd !important;
}

#sweepwidget_wrapper .user_competitions_each_links a.sw-btn-outline:hover {
    border-color: #4a3aff !important;
    color: #4a3aff !important;
    background: #fff !important;
}

/* === Utility Links === */
#sweepwidget_wrapper .sw-utility-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    float: left;
}

#sweepwidget_wrapper .get_embed_code {
    width: 100%;
    margin: 0;
    color: #4a3aff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    float: left;
}

#sweepwidget_wrapper .get_embed_code:hover {
    text-decoration: underline;
    color: #3d2ee6;
}

#sweepwidget_wrapper .sw-utility-links a.get_embed_code {
    color: #4a3aff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

#sweepwidget_wrapper .sw-utility-links a.get_embed_code:hover {
    text-decoration: underline;
    color: #3d2ee6;
}

#sweepwidget_wrapper .sw-more-toggle {
    color: #888;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

#sweepwidget_wrapper .sw-more-toggle:hover {
    color: #4a3aff;
}

#sweepwidget_wrapper .sw-more-content {
    display: none;
    flex-direction: column;
    gap: 4px;
}

#sweepwidget_wrapper .sw-more-content.sw-open {
    display: flex;
}

#sweepwidget_wrapper .sw-pause-link {
    margin-top: 4px;
    color: #c0392b;
}

#sweepwidget_wrapper .sw-pause-link:hover {
    color: #a93226;
}

/* === Shortcode Textarea === */
#sweepwidget_wrapper .user_competitions_each_textarea {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 8px 0 0;
    padding: 9px 12px;
    color: #444;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 18px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    display: none;
    float: left;
}

#sweepwidget_wrapper .user_competitions_each_textarea:focus {
    border-color: #4a3aff;
    box-shadow: 0 0 0 2px rgba(74, 58, 255, 0.1);
}

#sweepwidget_wrapper .user_competitions_each_textarea_message {
    width: 100%;
    margin: 8px 0;
    color: #666;
    font-size: 13px;
    line-height: 20px;
    float: left;
    display: none;
}

#sweepwidget_wrapper .user_competitions_each_textarea_message a {
    color: #4a3aff;
    font-weight: 500;
}

#sweepwidget_wrapper .user_competitions_each_textarea_message a:hover {
    color: #3d2ee6;
}

/* === Error messages === */
#sweepwidget_wrapper .sw-error-message {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* === Responsive === */
@media only screen and (max-width: 700px) {
    #sweepwidget_wrapper_inner {
        padding: 0 16px 40px;
    }

    #sweepwidget_wrapper #sweepwidget_hero {
        padding: 28px 16px 24px;
    }

    #sweepwidget_wrapper .user_competitions_each_holder_inner {
        flex-direction: column;
    }

    #sweepwidget_wrapper .user_competitions_each_holder_l {
        width: 100%;
        margin: 0 0 12px;
    }

    #sweepwidget_wrapper .user_competitions_each_holder_l img {
        width: 80px;
        height: 80px;
    }

    #sweepwidget_wrapper .user_competitions_each_holder_r {
        width: 100%;
    }

    #sweepwidget_wrapper .user_sub_header {
        text-align: center;
    }
}
