.tecz-og-container {
    max-width: 950px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tecz-og-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tecz-og-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.tecz-og-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.tecz-og-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

.tecz-og-inputs {
    padding: 20px;
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
}

.tecz-form-group {
    margin-bottom: 15px;
}

.tecz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

.tecz-form-group input,
.tecz-form-group textarea,
.tecz-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
}

.tecz-form-group input:focus,
.tecz-form-group textarea:focus,
.tecz-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tecz-help-text {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #64748b;
}

.tecz-og-panels {
    display: flex;
    flex-direction: column;
}

.tecz-og-preview-section {
    padding: 20px;
    background: #f1f5f9;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tecz-og-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tecz-tab-btn {
    background: #e2e8f0;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.tecz-tab-btn:hover {
    background: #cbd5e1;
}

.tecz-tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

/* Card Preview Styles */
.tecz-og-preview-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
    cursor: pointer;
}

.tecz-og-preview-card:hover {
    background: #f8fafc;
}

.tecz-preview-img-wrap {
    width: 100%;
    height: 260px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tecz-preview-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tecz-preview-placeholder-img {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.tecz-preview-content {
    padding: 12px 16px;
}

.tecz-preview-domain {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tecz-preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tecz-preview-desc {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Platform Specific Variants */
.tecz-og-preview-card.platform-facebook {
    border-radius: 0;
    border: 1px solid #dadde1;
}
.tecz-og-preview-card.platform-facebook .tecz-preview-content {
    background: #f2f3f5;
    padding: 10px 12px;
}
.tecz-og-preview-card.platform-facebook .tecz-preview-title {
    -webkit-line-clamp: 1;
}

.tecz-og-preview-card.platform-twitter {
    border-radius: 16px;
    border: 1px solid #cfd9de;
}
.tecz-og-preview-card.platform-twitter .tecz-preview-img-wrap {
    border-bottom: 1px solid #cfd9de;
}
.tecz-og-preview-card.platform-twitter .tecz-preview-domain {
    text-transform: lowercase;
    color: #536471;
}
.tecz-og-preview-card.platform-twitter .tecz-preview-desc {
    -webkit-line-clamp: 2;
}
.tecz-og-preview-card.platform-twitter.card-summary {
    display: flex;
}
.tecz-og-preview-card.platform-twitter.card-summary .tecz-preview-img-wrap {
    width: 130px;
    height: 130px;
    border-bottom: none;
    border-right: 1px solid #cfd9de;
}
.tecz-og-preview-card.platform-twitter.card-summary .tecz-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tecz-og-preview-card.platform-linkedin {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.tecz-og-preview-card.platform-linkedin .tecz-preview-content {
    background: #f8fafc;
}
.tecz-og-preview-card.platform-linkedin .tecz-preview-domain {
    display: none;
}
.tecz-og-preview-card.platform-linkedin .tecz-preview-desc {
    display: none;
}

/* Code Output */
.tecz-og-code-section {
    background: #1e293b;
    padding: 20px;
    position: relative;
}

.tecz-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tecz-code-header span {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
}

.tecz-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.tecz-btn:hover {
    background: #2563eb;
}

#tecz-og-code-output {
    width: 100%;
    height: 220px;
    background: #0f172a;
    color: #10b981;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    resize: vertical;
    box-sizing: border-box;
    white-space: pre;
}

#tecz-og-code-output:focus {
    outline: none;
}

#tecz-og-copy-msg {
    position: absolute;
    top: 60px;
    right: 30px;
    background: #10b981;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

@media (max-width: 800px) {
    .tecz-og-grid {
        grid-template-columns: 1fr;
    }
    .tecz-og-inputs {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}