/**
 * UpVimeo Gutenberg Block Styles
 * Modern UI/UX Overhaul
 */

/* Container */
.upvimeo-block-container {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.upvimeo-block-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 16px;
}

.upvimeo-block-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upvimeo-header-icon {
    width: 24px;
    height: 24px;
    fill: #00A7E1;
    /* UpVimeo Blue */
}

/* Method Selector (Tabs) */
.upvimeo-method-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.upvimeo-method-option {
    flex: 1;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: #f6f7f7;
    font-size: 13px;
    font-weight: 500;
    color: #50575e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.upvimeo-method-option:hover {
    background: #fff;
    border-color: #00A7E1;
    color: #00A7E1;
}

.upvimeo-method-option.active {
    background: #f0f9ff;
    border-color: #00A7E1;
    color: #007cba;
    /* Darker blue for text */
    box-shadow: 0 0 0 1px #00A7E1;
}

.upvimeo-method-option input {
    display: none;
}

.upvimeo-method-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: inherit;
}

/* Form Styles */
.upvimeo-vimeo-upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upvimeo-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upvimeo-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1e;
}

.upvimeo-input-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.upvimeo-input-control:focus {
    border-color: #00A7E1;
    box-shadow: 0 0 0 1px #00A7E1;
    outline: none;
}

textarea.upvimeo-input-control {
    min-height: 100px;
    resize: vertical;
}

/* Specific Field overrides */
.upvimeo-field-row {
    margin: 0;
    /* Reset margins from old CSS */
}

/* Buttons */
.upvimeo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00A7E1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    height: auto;
    line-height: normal;
}

.upvimeo-button:hover {
    background: #008dba;
    color: #fff;
}

.upvimeo-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.submitSearch {
    /* Retain original specificity if needed, but style it */
    min-height: 38px !important;
    /* Match input height */
    margin-left: 8px;
}

/* Search Area */
.upvimeo-search-controls {
    display: flex;
    align-items: center;
}

.upvimeo-search-field {
    flex: 1;
}

/* Progress Bar */
.upvimeo-progress-bar {
    height: 6px;
    background: #f0f0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.upvimeo-progress-bar-inner {
    height: 100%;
    background: #00A7E1;
    transition: width 0.3s ease;
}

.upvimeo-progress-bar-value {
    font-size: 11px;
    color: #666;
    text-align: right;
    margin-top: 4px;
    display: block;
}

/* Embed Container */
.upvimeo-embed-container {
    margin-top: 24px;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    overflow: hidden;
}

.upvimeo-embed-container iframe {
    display: block;
    width: 100%;
}