/* Time Workshop - Related Watch Models CSS */

.tw-related-models-section,
.tw-related-watches-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    clear: both;
}

.tw-related-models-title,
.tw-related-watches-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tw-related-models-grid,
.tw-related-watches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.tw-model-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tw-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0;
}

.tw-model-card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #edf2f7;
    background-color: #f8fafc;
}

.tw-model-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tw-model-card:hover .tw-model-card-image {
    transform: scale(1.05);
}

.tw-model-card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #edf2f7;
    background-color: #f8fafc;
}

.tw-model-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.25;
}

.tw-model-brand {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #4a5568;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 0.25rem;
}

.tw-model-card-body {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tw-model-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1.25rem;
    background: #f7fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #edf2f7;
}

.tw-spec-item {
    line-height: 1.4;
}

.tw-spec-item strong {
    color: #2d3748;
}

.tw-model-summary {
    font-size: 0.925rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.tw-model-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #edf2f7;
    background-color: #f8fafc;
}

.tw-model-link-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #1a202c;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.tw-model-link-btn:hover {
    background-color: #2d3748;
}

/* Dark Mode support (if active on parent theme) */
@media (prefers-color-scheme: dark) {
    .tw-related-models-section,
    .tw-related-watches-section {
        border-top-color: #2d3748;
    }
    .tw-related-models-title,
    .tw-related-watches-title {
        color: #f7fafc;
    }
    .tw-model-card {
        background: #1a202c;
        border-color: #2d3748;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }
    .tw-model-card:hover {
        border-color: #4a5568;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    }
    .tw-model-card-header {
        background-color: #1a202c;
        border-bottom-color: #2d3748;
    }
    .tw-model-card-image-wrapper {
        border-bottom-color: #2d3748;
        background-color: #1a202c;
    }
    .tw-model-title {
        color: #f7fafc;
    }
    .tw-model-brand {
        color: #a0aec0;
    }
    .tw-model-specs {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    .tw-spec-item strong {
        color: #f7fafc;
    }
    .tw-model-summary {
        color: #cbd5e0;
    }
    .tw-model-card-footer {
        background-color: #1a202c;
        border-top-color: #2d3748;
    }
    .tw-model-link-btn {
        background-color: #4a5568;
    }
    .tw-model-link-btn:hover {
        background-color: #718096;
    }
}
