/**
 * Public-facing styles for the TryU Catalog plugin.
 *
 * @link       https://tryu.global
 * @since      1.0.0
 * @package    Tryu_Catalog
 */

/* ======================================
   BASE RESET FOR CATALOG
====================================== */

.tryu-single-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ======================================
   CATALOG CARD
====================================== */

.tryu-catalog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

@media (max-width: 768px) {
    .tryu-catalog-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ======================================
   DRESS IMAGE
====================================== */

.tryu-catalog-image-wrap {
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tryu-catalog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tryu-catalog-image-wrap:hover .tryu-catalog-image {
    transform: scale(1.03);
}

.tryu-catalog-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.tryu-catalog-no-image .dashicons {
    font-size: 4rem;
    width: 4rem;
    height: 4rem;
    color: #d1d5db;
}

/* ======================================
   CATALOG INFO
====================================== */

.tryu-catalog-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .tryu-catalog-info {
        padding: 24px;
    }
}

/* ======================================
   TITLE
====================================== */

.tryu-catalog-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* ======================================
   BADGES
====================================== */

.tryu-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    width: fit-content;
}

.tryu-badge--type {
    background: #fff3e8;
    color: #f97415;
    border: 1px solid #fde68a;
}

.tryu-badge--tryon {
    background: #fde9e8;
    color: #d96f28;
    border: 1px solid #fdd5c7;
}

.tryu-badge--measure {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* ======================================
   DESCRIPTION (ADMIN ONLY)
====================================== */

.tryu-catalog-description.admin-only {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px;
}

.tryu-catalog-description.admin-only p {
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ======================================
   SECTION HEADINGS
====================================== */

.tryu-section-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tryu-section-heading .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    color: #f97415;
}

/* ======================================
   URL DISPLAY
====================================== */

.tryu-catalog-url-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-top: 4px;
}

.tryu-url-display {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tryu-url-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    background: #fff;
    cursor: text;
}

.tryu-url-input:focus {
    outline: 2px solid #f97415;
    outline-offset: 1px;
}

/* ======================================
   BUTTONS
====================================== */

.tryu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tryu-btn--copy {
    background: #f97415;
    color: #fff;
    border: none;
}

.tryu-btn--copy:hover {
    background: #f97415;
    color: #fff;
}

.tryu-btn--copy .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.tryu-btn--primary {
    background: linear-gradient(135deg, #f97415 0%, #f97415 100%);
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(249, 116, 21, 0.3);
}

.tryu-btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 116, 21, 0.35);
    color: #fff;
    text-decoration: none;
}

.tryu-btn--primary .dashicons {
    font-size: 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
}

.tryu-cta-btn {
    display: flex;
}

/* ======================================
   SHARE ICONS
====================================== */

.tryu-share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tryu-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.tryu-share-icons {
    display: flex;
    gap: 8px;
}

.tryu-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tryu-share-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.tryu-share-btn--whatsapp:hover {
    background: #1ebe57;
    color: #fff;
    text-decoration: none;
}

.tryu-share-btn--email {
    background: #374151;
    color: #fff;
}

.tryu-share-btn--email:hover {
    background: #1f2937;
    color: #fff;
    text-decoration: none;
}

.tryu-share-btn--email .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* ======================================
   NO URL STATE
====================================== */

.tryu-no-url {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    border: 1px dashed #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}