/**
 * Company Detail Page Styles
 */

/* Container */
.evfv-company-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Back Link */
.evfv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 25px;
    transition: color 0.2s;
}

.evfv-back-link:hover {
    color: var(--evfv-primary-color, #0073aa);
}

/* Header */
.evfv-detail-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.evfv-detail-logo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.evfv-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.evfv-logo-placeholder-large {
    background: linear-gradient(135deg, var(--evfv-primary-color, #0073aa) 0%, #005177 100%);
}

.evfv-logo-placeholder-large span {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.evfv-detail-title h1 {
    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
}

.evfv-detail-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.evfv-detail-groups .evfv-group-badge {
    background: #f0f6fc;
    color: var(--evfv-primary-color, #0073aa);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Gallery */
.evfv-detail-gallery {
    margin-bottom: 40px;
}

.evfv-gallery-main {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 15px;
}

.evfv-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.evfv-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.evfv-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.evfv-gallery-thumb:hover {
    opacity: 0.9;
}

.evfv-gallery-thumb.active {
    opacity: 1;
    border-color: var(--evfv-primary-color, #0073aa);
}

.evfv-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.evfv-detail-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.evfv-detail-main {
    min-width: 0;
}

.evfv-detail-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Sections */
.evfv-detail-section {
    margin-bottom: 35px;
}

.evfv-detail-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.evfv-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.evfv-detail-description p {
    margin: 0 0 15px;
}

.evfv-detail-description p:last-child {
    margin-bottom: 0;
}

.evfv-opening-hours {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Contact Card */
.evfv-contact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.evfv-contact-card h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.evfv-contact-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.evfv-contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.evfv-contact-item:first-of-type {
    padding-top: 0;
}

.evfv-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f0f6fc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--evfv-primary-color, #0073aa);
}

.evfv-contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.evfv-contact-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evfv-contact-value {
    font-size: 15px;
    color: #1d2327;
    text-decoration: none;
    word-break: break-word;
}

a.evfv-contact-value:hover {
    color: var(--evfv-primary-color, #0073aa);
}

/* Edit Section */
.evfv-edit-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
}

.evfv-edit-flow h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.evfv-edit-flow p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

.evfv-email-preview {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.evfv-btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.evfv-btn-text {
    background: transparent;
    color: #666;
    padding: 10px 15px;
}

.evfv-btn-text:hover {
    background: #eee;
    color: #333;
}

/* OTP Input */
.evfv-otp-input-wrapper {
    margin: 20px 0;
}

.evfv-otp-input {
    width: 100%;
    padding: 18px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 12px;
    font-family: monospace;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
}

.evfv-otp-input:focus {
    outline: none;
    border-color: var(--evfv-primary-color, #0073aa);
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.evfv-resend-hint {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 15px;
}

.evfv-resend-link {
    color: var(--evfv-primary-color, #0073aa);
    text-decoration: none;
}

.evfv-resend-link:hover {
    text-decoration: underline;
}

.evfv-no-edit {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* Buttons */
.evfv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.evfv-btn-primary {
    background: var(--evfv-primary-color, #0073aa);
    color: #fff;
}

.evfv-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.evfv-btn-secondary {
    background: #fff;
    color: #1d2327;
    border: 2px solid #ddd;
}

.evfv-btn-secondary:hover {
    border-color: var(--evfv-primary-color, #0073aa);
    color: var(--evfv-primary-color, #0073aa);
}

.evfv-btn-block {
    width: 100%;
}

.evfv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.evfv-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.evfv-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.evfv-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.evfv-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: evfv-spin 0.8s linear infinite;
}

.evfv-btn-secondary .evfv-loading {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: var(--evfv-primary-color, #0073aa);
}

@keyframes evfv-spin {
    to { transform: rotate(360deg); }
}

/* Error Page */
.evfv-error {
    text-align: center;
    padding: 60px 20px;
    background: #f8d7da;
    border-radius: 12px;
    color: #721c24;
    font-size: 16px;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .evfv-detail-content {
        grid-template-columns: 1fr;
    }
    
    .evfv-detail-sidebar {
        position: static;
    }
    
    .evfv-gallery-main {
        height: 300px;
    }
}

@media screen and (max-width: 600px) {
    .evfv-company-detail {
        padding: 15px;
    }
    
    .evfv-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .evfv-detail-logo {
        width: 120px;
        height: 120px;
    }
    
    .evfv-detail-title h1 {
        font-size: 24px;
    }
    
    .evfv-detail-groups {
        justify-content: center;
    }
    
    .evfv-gallery-main {
        height: 220px;
    }
    
    .evfv-gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .evfv-otp-input {
        font-size: 22px;
        letter-spacing: 8px;
        padding: 15px;
    }
}
