/* licensing-records.css */
@import url('/app/fonts.css');
@import url('/app/tailwind.css');
@import url('/app/global.css');

.licensing-container {
    position: relative;
    overflow: hidden;
    color: white;
    width: 100vw;
    min-height: 100vh; /* min not max — lets it grow with content */
    display: flex;
    flex-direction: column;
}

.licensing-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-licensing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
    z-index: 0;
}

.licensing-hero,
.licensing-steps,
.licensing-cta {
    position: relative;
    z-index: 1;
}

.licensing-title {
    font-family: var(--font-inter);
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
}

.licensing-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
    line-height: 1.6;
}

/* Cover in step 1 */
.step-cover-link {
    display: block;
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.step-cover {
    width: 100%;
    aspect-ratio: 1/1;
    background-image: url('/app/assets/img/records/DANCE WITH ME (jpg).jpg');
    background-size: 103%;
    background-position: center center;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.step-cover-link:hover .step-cover {
    filter: brightness(0.7);
    animation-play-state: paused;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.step-cover-3 {
    width: 80%;
    margin: 0 auto;
    aspect-ratio: 1/1;
    background-image: url('/app/assets/img/G6-jF_ZXkAAkgC6.jpeg');
    background-size: cover;
    background-position: center center;
    border-radius: 0.75rem;
    animation: none; /* overrides the float from .step-cover */
}

.step-cover-link:hover .step-cover {
    filter: brightness(0.7);
}

.step-card:nth-child(1) {
    background: rgba(255, 255, 255, 0.4);
}

.step-card:nth-child(3) {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
}

.step-card:nth-child(5) {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(170, 170, 170, 0.9);
}

/* Steps */
.licensing-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 2rem 4rem 3rem;
    max-width: 100rem;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    padding: 2rem;
    color: black;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.step-card:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-4px);
    box-shadow: 8px 16px 40px rgba(0, 0, 0, 0.2);
    /* background: rgba(255, 255, 255, 0.88); */
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: black;
    margin-bottom: 0;
    text-transform: uppercase;
    flex-shrink: 0;
    text-align: left;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.25px;
    text-align: right;
    color: black;
}

.step-desc {
    font-family: var(--font-inter);
    font-size: .9rem;
    color: black;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
    /* text-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25); */
}

.step-example {
    margin-top: 1.25rem;
    background: #f9f9f9;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    border: none;
}

.step-example-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.6rem;
}

.step-example code {
    font-family: var(--font-inter);
    font-size: 0.78rem;
    color: black;
    line-height: 1.6;
    white-space: pre-line;
}

.step-divider {
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem;
    padding: 0 1.25rem;
    align-self: center;
    margin-top: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.step-list li {
    font-size: 0.9rem;
    font-weight: 400;
    color: black;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-list li::before {
    content: '–';
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-list li:last-child {
    border-bottom: none;
}

/* YouTube-style description */
.yt-description {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.yt-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.yt-key {
    color: #0f0f0f;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    min-width: unset;
    flex-shrink: 0;
}

.yt-sep {
    color: #0f0f0f;
    flex-shrink: 0;
}

.yt-val {
    color: #0f0f0f;
    font-weight: 400;
}

.yt-link {
    color: #065fd4;
    text-decoration: none;
    font-weight: 400;
}

.yt-link:hover {
    text-decoration: underline;
}

/* CTA */
.licensing-cta {
    display: flex;
    justify-content: center;
    padding-bottom: 3rem;
}

.use-now-btn {
    background-color: white;
    color: black;
    border: none;
    padding: 1rem 2.25rem;
    border-radius: 10rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.use-now-btn .btn-usage {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.use-now-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) and (orientation: portrait) {
    .licensing-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .licensing-title {
        font-size: 1.75rem;
    }

    .licensing-steps {
        flex-direction: column;
        padding: 1rem 1.5rem 3rem;
        gap: 1rem;
    }

    .step-divider {
        display: none;
    }

    .licensing-cta {
        padding-bottom: 3rem;
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    .licensing-steps {
        padding: 1rem 2rem 2rem;
        gap: 0;
    }

    .licensing-title {
        font-size: 1.75rem;
    }

    .step-card {
        padding: 1.25rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-desc {
        font-size: 0.8rem;
    }

    .step-divider {
        padding: 0 0.5rem;
        margin-top: 2.5rem;
    }
}