/**
 * Vozy Plugin - Frontend Styles
 */

/* ==========================================================================
   Základní styly
   ========================================================================== */

.vozy-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.5;
}

.vozy-detail-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-bottom: 40px;
}

/* ==========================================================================
   Levý sloupec
   ========================================================================== */

.vozy-detail-left {
    min-width: 0;
}

/* Logo dealera */
.vozy-dealer-logo {
    margin-bottom: 15px;
}

.vozy-dealer-logo img {
    max-height: 60px;
    width: auto;
}

/* ==========================================================================
   Galerie
   ========================================================================== */

.vozy-gallery {
    margin-bottom: 25px;
}

.vozy-gallery-main {
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vozy-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.vozy-gallery-main.vozy-no-image {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vozy-gallery-main.vozy-no-image .dashicons {
    font-size: 80px;
    color: #ddd;
}

.vozy-gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.vozy-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.vozy-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.vozy-gallery-thumb:hover,
.vozy-gallery-thumb.active {
    border-color: #4040ff;
}

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

/* ==========================================================================
   Sekce a nadpisy
   ========================================================================== */

.vozy-section {
    margin-bottom: 25px;
}

.vozy-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #333;
}

.vozy-description {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.vozy-description p {
    margin-bottom: 12px;
}

/* ==========================================================================
   Tagy
   ========================================================================== */

.vozy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.vozy-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 13px;
    color: #555;
}

.vozy-tag-icon {
    color: #4040ff;
    font-weight: bold;
}

/* ==========================================================================
   Výbava
   ========================================================================== */

.vozy-equipment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
}

.vozy-equipment-item {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

/* ==========================================================================
   Sdílení
   ========================================================================== */

.vozy-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.vozy-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vozy-share-fb {
    background: #1877f2;
    color: #fff;
}

.vozy-share-fb:hover {
    background: #0d65d9;
    color: #fff;
}

.vozy-share-tw {
    background: #000;
    color: #fff;
}

.vozy-share-tw:hover {
    background: #333;
    color: #fff;
}

/* ==========================================================================
   Pravý sloupec
   ========================================================================== */

.vozy-detail-right {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Nadpis */
.vozy-header {
    margin-bottom: 15px;
}

.vozy-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
    line-height: 1.3;
}

.vozy-subtitle {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Cena
   ========================================================================== */

.vozy-price-box {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.vozy-price-main {
    font-size: 32px;
    font-weight: 700;
    color: #4040ff;
}

.vozy-price-secondary {
    font-size: 16px;
    color: #888;
}

/* ==========================================================================
   Parametry tabulka
   ========================================================================== */

.vozy-params {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.vozy-params-table {
    width: 100%;
    border-collapse: collapse;
}

.vozy-params-table tr {
    border-bottom: 1px solid #eee;
}

.vozy-params-table tr:last-child {
    border-bottom: none;
}

.vozy-params-table td {
    padding: 10px 0;
    font-size: 14px;
}

.vozy-param-label {
    color: #666;
    width: 45%;
}

.vozy-param-value {
    color: #333;
    font-weight: 500;
}

/* ==========================================================================
   Tlačítka
   ========================================================================== */

.vozy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.vozy-btn-icon {
    font-size: 18px;
}

.vozy-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vozy-btn-phone {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.vozy-btn-phone:hover {
    background: #e5e5e5;
    color: #333;
}

.vozy-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.vozy-btn-whatsapp:hover {
    background: #1fb855;
    color: #fff;
}

.vozy-btn-inquiry {
    background: #4040ff;
    color: #fff;
}

.vozy-btn-inquiry:hover {
    background: #3030dd;
    color: #fff;
}

.vozy-btn-small {
    padding: 10px 16px;
    font-size: 14px;
}

.vozy-btn-submit {
    background: #4040ff;
    color: #fff;
    padding: 12px 30px;
    width: auto;
}

.vozy-btn-submit:hover {
    background: #3030dd;
    color: #fff;
}

/* ==========================================================================
   Kontaktní box
   ========================================================================== */

.vozy-contact-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.vozy-contact-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.vozy-contact-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
}

.vozy-contact-box a {
    color: #4040ff;
    text-decoration: none;
}

.vozy-contact-box a:hover {
    text-decoration: underline;
}

.vozy-contact-phone a {
    color: #4040ff;
    font-size: 18px;
}

.vozy-contact-box .vozy-btn {
    margin-top: 15px;
}

/* ==========================================================================
   Poptávkový formulář
   ========================================================================== */

.vozy-inquiry-section {
    background: #f5f5f5;
    padding: 40px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.vozy-inquiry-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.vozy-inquiry-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
}

.vozy-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.vozy-form-field {
    flex: 1;
}

.vozy-form-field-full {
    flex: 100%;
}

.vozy-form-field input,
.vozy-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.vozy-form-field input:focus,
.vozy-form-field textarea:focus {
    outline: none;
    border-color: #4040ff;
}

.vozy-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.vozy-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.vozy-form-gdpr {
    flex: 1;
}

.vozy-form-gdpr label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.vozy-form-gdpr input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.vozy-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

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

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

/* Kontaktní box u formuláře */
.vozy-inquiry-contact {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    align-self: start;
}

.vozy-inquiry-logo {
    margin-bottom: 15px;
}

.vozy-inquiry-logo img {
    max-height: 50px;
    width: auto;
}

.vozy-inquiry-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.vozy-inquiry-contact p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
}

.vozy-inquiry-phone a {
    color: #4040ff;
    font-size: 20px;
    font-weight: 600;
}

.vozy-inquiry-contact a {
    color: #4040ff;
    text-decoration: none;
}

.vozy-inquiry-contact .vozy-btn {
    margin-top: 15px;
}

/* ==========================================================================
   Související vozy
   ========================================================================== */

.vozy-related-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.vozy-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vozy-related-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.vozy-related-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.vozy-related-item a {
    text-decoration: none;
    color: inherit;
}

.vozy-related-image {
    position: relative;
    aspect-ratio: 16/10;
    background: #f5f5f5;
}

.vozy-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vozy-related-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vozy-related-content {
    padding: 15px;
}

.vozy-related-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vozy-related-price {
    font-size: 18px;
    font-weight: 700;
    color: #4040ff;
    margin-bottom: 8px;
}

.vozy-related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 12px;
    color: #888;
}

.vozy-related-year {
    background: #4040ff;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.vozy-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    height: 100%;
}

.vozy-no-image .dashicons {
    font-size: 40px;
    color: #ddd;
}

/* ==========================================================================
   Responzivní styly
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .vozy-detail-container {
        grid-template-columns: 1fr;
    }
    
    .vozy-detail-right {
        position: static;
    }
    
    .vozy-equipment {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vozy-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vozy-inquiry-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .vozy-detail-wrapper {
        padding: 15px;
    }
    
    .vozy-title {
        font-size: 20px;
    }
    
    .vozy-price-main {
        font-size: 26px;
    }
    
    .vozy-price-secondary {
        font-size: 14px;
    }
    
    .vozy-form-row {
        flex-direction: column;
    }
    
    .vozy-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vozy-form-submit {
        width: 100%;
    }
    
    .vozy-form-submit .vozy-btn {
        width: 100%;
    }
    
    .vozy-equipment {
        grid-template-columns: 1fr;
    }
    
    .vozy-related-grid {
        grid-template-columns: 1fr;
    }
    
    .vozy-gallery-thumb {
        width: 60px;
        height: 45px;
    }
}

/* ==========================================================================
   Archiv / Seznam vozů
   ========================================================================== */

.vozy-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vozy-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vozy-archive-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.vozy-archive-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.vozy-archive-item a {
    text-decoration: none;
    color: inherit;
}

.vozy-archive-image {
    position: relative;
    aspect-ratio: 16/10;
    background: #f5f5f5;
}

.vozy-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vozy-archive-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vozy-archive-content {
    padding: 20px;
}

.vozy-archive-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.vozy-archive-price {
    font-size: 22px;
    font-weight: 700;
    color: #4040ff;
    margin-bottom: 10px;
}

.vozy-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    font-size: 13px;
    color: #666;
}

@media screen and (max-width: 1024px) {
    .vozy-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .vozy-archive-grid {
        grid-template-columns: 1fr;
    }
}
