/* Pinterest Downloader — Shortcode Styles */
.pind-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* Hero */
.pind-hero {
    text-align: center;
    padding: 32px 16px 24px;
}
.pind-title {
    font-size: 2rem;
    font-weight: 800;
    color: #e60023;
    margin: 0 0 10px;
    line-height: 1.2;
}
.pind-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Input box */
.pind-box {
    background: #fff;
    border: 2px solid #e60023;
    border-radius: 14px;
    padding: 18px 20px 12px;
    box-shadow: 0 4px 24px rgba(230,0,35,.10);
    margin-bottom: 8px;
}
.pind-input-row {
    display: flex;
    gap: 10px;
}
.pind-input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
    min-width: 0;
}
.pind-input:focus {
    border-color: #e60023;
    box-shadow: 0 0 0 3px rgba(230,0,35,.10);
}
.pind-btn {
    background: #e60023;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pind-btn:hover  { background: #c0001d; }
.pind-btn:active { transform: scale(.97); }
.pind-btn-spinner {
    display: inline-block;
    animation: pind-spin 0.7s linear infinite;
}
@keyframes pind-spin { to { transform: rotate(360deg); } }
.pind-hint {
    font-size: .78rem;
    color: #999;
    margin: 8px 0 0;
    text-align: center;
}

/* Error */
.pind-error {
    background: #fff0f2;
    border: 1.5px solid #e60023;
    border-radius: 10px;
    padding: 14px 18px;
    color: #c0001d;
    font-size: .95rem;
    margin-top: 14px;
}

/* Result card */
.pind-result {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 14px;
    padding: 20px;
    margin-top: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.pind-media-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pind-thumb-wrap {
    flex-shrink: 0;
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
}
.pind-thumb-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.pind-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(230,0,35,.88);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .05em;
}
.pind-meta {
    flex: 1;
    min-width: 0;
}
.pind-pin-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.4;
    word-break: break-word;
}
.pind-download-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pind-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e60023;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    transition: background .2s, transform .1s;
}
.pind-download-btn:hover  { background: #c0001d; color: #fff !important; }
.pind-download-btn:active { transform: scale(.97); }
.pind-download-btn svg { flex-shrink: 0; }

/* How-to steps */
.pind-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pind-step {
    text-align: center;
    flex: 0 0 160px;
    max-width: 160px;
}
.pind-step-num {
    width: 42px;
    height: 42px;
    background: #e60023;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.pind-step p {
    font-size: .88rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 520px) {
    .pind-title       { font-size: 1.5rem; }
    .pind-input-row   { flex-direction: column; }
    .pind-btn         { width: 100%; justify-content: center; }
    .pind-thumb-wrap  { width: 100%; }
    .pind-media-row   { flex-direction: column; }
}
