/* Škoda Klub Hrvatska - Digitalna Iskaznica CSS v1.1.0 */
.skh-wrapper {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
}

/* Jednostavni Email Login ekran */
.skh-login-prompt {
    max-width: 440px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.skh-login-logo {
    height: 54px;
    width: auto;
    margin: 0 auto 14px auto;
    display: block;
}

.skh-login-prompt h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.skh-login-prompt p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.5;
}

.skh-email-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skh-email-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.skh-email-input:focus {
    border-color: #4ba82e;
}

.skh-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.skh-success-notice {
    max-width: 480px;
    margin: 0 auto 18px auto;
    background: #e8f7e4;
    border: 1px solid #b7e4ab;
    color: #1f6b0d;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.skh-btn {
    display: inline-block;
    background: #4ba82e;
    color: #ffffff !important;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.skh-btn:hover {
    background: #3b8823;
}

.skh-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 8px;
}

/* Kartica Container */
.skh-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    perspective: 1000px;
}

/* Dizajn kartice */
.skh-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 295px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f7f5 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(75, 168, 46, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 26px;
    box-sizing: border-box;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.skh-card.skh-status-inactive {
    filter: grayscale(85%);
    opacity: 0.88;
    border-color: #cbd5e1;
}

/* Pozadinski val */
.skh-card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 165px;
    z-index: 1;
    pointer-events: none;
}

.skh-card-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Header kartice */
.skh-card-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.skh-club-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skh-club-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.skh-club-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.skh-title-top {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #4ba82e;
}

.skh-title-sub {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111827;
}

/* Status značka */
.skh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-active {
    background: #e8f7e4;
    color: #1f6b0d;
    border: 1px solid #b7e4ab;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.skh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.badge-active .skh-dot {
    background: #4ba82e;
    box-shadow: 0 0 0 0 rgba(75, 168, 46, 0.7);
    animation: skhPulse 2s infinite;
}

.badge-inactive .skh-dot {
    background: #dc2626;
}

@keyframes skhPulse {
    0% { box-shadow: 0 0 0 0 rgba(75, 168, 46, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(75, 168, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(75, 168, 46, 0); }
}

/* Tijelo kartice */
.skh-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.skh-member-photo-wrap {
    flex-shrink: 0;
}

.skh-member-photo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4ba82e;
    background: #e5e7eb;
    display: block;
}

.skh-status-inactive .skh-member-photo {
    border-color: #9ca3af;
}

.skh-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skh-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #6b7280;
    text-transform: uppercase;
}

.skh-member-name {
    margin: 2px 0 6px 0 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
}

.skh-member-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.skh-member-id strong {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    background: rgba(75, 168, 46, 0.14);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* Podnožje kartice */
.skh-card-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    padding-top: 6px;
}

.skh-live-clock {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Akcije ispod kartice */
.skh-card-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.skh-action-btn {
    background: none;
    border: none;
    color: #4b5563;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}

.skh-action-btn:hover {
    color: #4ba82e;
}

.skh-action-link {
    color: #6b7280;
    text-decoration: underline;
}

.skh-action-link:hover {
    color: #dc2626;
}

.skh-photo-upload-box {
    margin-top: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.skh-photo-upload-box p {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
}

/* Sekcija pogodnosti */
.skh-benefits-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
}

.skh-benefits-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111827;
}

.skh-benefits-subtitle {
    color: #4b5563;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Poruka za neaktivne članove */
.skh-inactive-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff8eb;
    border: 1px solid #fcd34d;
    border-left: 5px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 16px 0 26px 0;
    color: #78350f;
}

.skh-lock-icon {
    font-size: 24px;
    line-height: 1;
}

.skh-inactive-banner p {
    margin: 6px 0 0 0;
    font-size: 14px;
}

/* Grid pogodnosti */
.skh-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.skh-benefit-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefits-unlocked .skh-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(75, 168, 46, 0.12);
    border-color: #4ba82e;
}

/* Zatamnjeni prikaz pogodnosti za neaktivne članove */
.benefits-locked .skh-benefit-card {
    opacity: 0.55;
    filter: grayscale(80%);
    background: #f9fafb;
    user-select: none;
}

.skh-benefit-tag-locked {
    display: inline-block;
    align-self: flex-start;
    background: #374151;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.skh-benefit-logo {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.skh-benefit-logo img {
    max-height: 55px;
    max-width: 160px;
    object-fit: contain;
}

.skh-benefit-content h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.skh-benefit-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.skh-benefit-desc p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .skh-card {
        padding: 18px;
        min-height: 270px;
    }
    .skh-card-body {
        gap: 14px;
        padding: 12px;
    }
    .skh-member-photo {
        width: 64px;
        height: 64px;
    }
    .skh-member-name {
        font-size: 18px !important;
    }
    .skh-title-sub {
        font-size: 14px;
    }
}
