/* =========================================================
   THREE - CINEMATIC VECTOR BUTTONS
   Put this file in: themes/three/assets/css/three-buttons.css
========================================================= */

.three-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.three-cine-button {
    position: relative;
    width: 342px;
    height: 94px;
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
    overflow: visible;
    isolation: isolate;
    transform-origin: center;
    transition:
        transform .22s ease,
        filter .22s ease;
}

.three-cine-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
    filter:
        drop-shadow(0 8px 10px rgba(0, 0, 0, .62));
}

.three-cine-aura {
    opacity: .42;
    transition:
        opacity .22s ease,
        stroke-width .22s ease;
}

.three-cine-gem {
    transform-box: fill-box;
    transform-origin: center;
    transition:
        transform .22s ease,
        filter .22s ease;
}

.three-cine-content {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 24px 0 24px;
    pointer-events: none;
}

.three-cine-icon {
    width: 54px;
    height: 54px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
}

.three-cine-icon svg {
    width: 42px;
    height: 42px;
    overflow: visible;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.three-cine-copy {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    padding-right: 8px;
    transform: translateY(-1px);
}

.three-cine-copy strong {
    display: block;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .35px;
    white-space: nowrap;
}

.three-cine-copy small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.three-cine-button--gold .three-cine-copy strong {
    color: #fff8e8;
    text-shadow:
        0 2px 1px #180700,
        0 0 4px rgba(255,255,255,.12),
        0 0 8px rgba(255,188,58,.24);
}

.three-cine-button--gold .three-cine-copy small {
    color: #efbd62;
    text-shadow: 0 1px 2px #1d0900;
}

.three-cine-button--cyan .three-cine-copy strong {
    color: #f0fdff;
    font-size: 17px;
    text-shadow:
        0 2px 1px #00121a,
        0 0 4px rgba(255,255,255,.12),
        0 0 8px rgba(0,216,255,.24);
}

.three-cine-button--cyan .three-cine-copy small {
    color: #65def2;
    text-shadow: 0 1px 2px #00131d;
}

.three-cine-button--gold .three-cine-copy strong {
    color: #fff8e8;
    text-shadow:
        0 2px 1px #180700,
        0 0 4px rgba(255,255,255,.12),
        0 0 8px rgba(255,188,58,.24);
}

.three-cine-button--gold .three-cine-copy small {
    color: #efbd62;
    text-shadow: 0 1px 2px #1d0900;
}

.three-cine-button--cyan .three-cine-copy strong {
    color: #f0fdff;
    text-shadow:
        0 2px 1px #00121a,
        0 0 4px rgba(255,255,255,.12),
        0 0 8px rgba(0,216,255,.24);
}

.three-cine-button--cyan .three-cine-copy small {
    color: #65def2;
    text-shadow: 0 1px 2px #00131d;
}

/* Animated light sweep */
.three-cine-sheen {
    position: absolute;
    z-index: 4;
    top: 12px;
    bottom: 12px;
    left: -34%;
    width: 16%;
    opacity: 0;
    pointer-events: none;
    transform: skewX(-19deg);
    mix-blend-mode: screen;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.03) 22%,
            rgba(255,255,255,.28) 50%,
            rgba(255,255,255,.03) 78%,
            transparent 100%
        );
    filter: blur(.35px);
}

.three-cine-button:hover {
    transform: translateY(-3px) scale(1.018);
    filter: brightness(1.09) saturate(1.07);
}

.three-cine-button:hover .three-cine-aura {
    opacity: .92;
    stroke-width: 5.2;
}

.three-cine-button:hover .three-cine-gem {
    transform: scale(1.14);
    filter: brightness(1.38);
}

.three-cine-button:hover .three-cine-sheen {
    opacity: 1;
    animation: three-cine-sweep .82s ease-out forwards;
}

.three-cine-button:active {
    transform: translateY(1px) scale(.992);
    filter: brightness(.97);
}

@keyframes three-cine-sweep {
    from { left: -34%; }
    to   { left: 126%; }
}

/* Fine glow tuned per button */
.three-cine-button--gold:hover .three-cine-frame {
    filter:
        brightness(1.10)
        drop-shadow(0 0 5px rgba(255,195,75,.45))
        drop-shadow(0 0 12px rgba(255,126,0,.18));
}

.three-cine-button--cyan:hover .three-cine-frame {
    filter:
        brightness(1.10)
        drop-shadow(0 0 5px rgba(91,235,255,.45))
        drop-shadow(0 0 12px rgba(0,154,255,.18));
}

@media (max-width: 1200px) {
    .three-hero-actions {
        gap: 14px;
    }

    .three-cine-button {
        width: 292px;
        height: 80px;
    }

    .three-cine-content {
        padding: 0 24px 0 28px;
    }

    .three-cine-icon {
        width: 49px;
        height: 49px;
        margin-right: 9px;
    }

    .three-cine-icon svg {
        width: 39px;
        height: 39px;
    }

    .three-cine-copy strong {
        font-size: 17px;
    }

    .three-cine-copy small {
        margin-top: 6px;
        font-size: 8.5px;
        letter-spacing: 1.45px;
    }
}

@media (max-width: 800px) {
    .three-hero-actions {
        gap: 8px;
    }

    .three-cine-button {
        width: 228px;
        height: 63px;
    }

    .three-cine-content {
        padding: 0 16px 0 19px;
    }

    .three-cine-icon {
        width: 38px;
        height: 38px;
        margin-right: 5px;
    }

    .three-cine-icon svg {
        width: 30px;
        height: 30px;
    }

    .three-cine-copy strong {
        font-size: 13px;
    }

    .three-cine-copy small {
        margin-top: 5px;
        font-size: 7px;
        letter-spacing: .9px;
    }
}

/* =========================================================
   REALISTIC BUTTON OVERRIDE
   pune blocul asta la FINALUL fisierului three-buttons.css
========================================================= */

.three-hero-actions{
    gap: 18px;
    margin-top: 28px;
}

.three-cine-button{
    position: relative;
    width: 338px;
    height: 92px;
    display: block;

    overflow: hidden;

    background: transparent !important;
    border: 0;
    outline: 0;

    border-radius: 16px;

    clip-path: polygon(
        10px 0,
        calc(100% - 10px) 0,
        100% 10px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        10px 100%,
        0 calc(100% - 10px),
        0 10px
    );

    isolation: isolate;
    transform-origin: center;

    transition:
        transform .22s ease,
        filter .22s ease,
        box-shadow .22s ease;
}

.three-cine-button::before{
    content: "";
    position: absolute;
    inset: 10px 16px auto 16px;
    height: 14px;
    border-radius: 999px;
    opacity: .42;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.50) 0%,
        rgba(255,255,255,.18) 45%,
        rgba(255,255,255,0) 100%
    );
    filter: blur(1.8px);
}

.three-cine-button::after{
    content: "";
    position: absolute;

    inset: 8px;

    pointer-events: none;
    z-index: 2;

    background: transparent;

    border-radius: 12px;

    clip-path: polygon(
        7px 0,
        calc(100% - 7px) 0,
        100% 7px,
        100% calc(100% - 7px),
        calc(100% - 7px) 100%,
        7px 100%,
        0 calc(100% - 7px),
        0 7px
    );

    box-shadow:
        inset 0 2px 2px rgba(255,255,255,.18),
        inset 0 -8px 15px rgba(0,0,0,.20);
}

.three-cine-frame{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 16px;

    pointer-events: none;
    z-index: 1;

    filter: none;
}

.three-cine-content{
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    padding: 0 26px 0 26px;
    pointer-events: none;
}

.three-cine-icon{
    width: 50px;
    height: 50px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.three-cine-icon svg{
    width: 34px;
    height: 34px;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.three-cine-copy{
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.three-cine-copy strong{
    display: block;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .5px;
    white-space: nowrap;
}

.three-cine-copy small{
    display: block;
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.3px;
    white-space: nowrap;
    opacity: .96;
}

/* GOLD */
.three-cine-button--gold .three-cine-copy strong{
    color: #fff6df;
    text-shadow:
        0 1px 0 #5a2400,
        0 2px 0 #2a0b00,
        0 3px 6px rgba(0,0,0,.48),
        0 0 10px rgba(255,190,70,.18);
}

.three-cine-button--gold .three-cine-copy small{
    color: #f0c56e;
    text-shadow:
        0 1px 0 #4c1f00,
        0 2px 4px rgba(0,0,0,.5);
}

.three-cine-button--gold .three-cine-icon svg {
    stroke: #fff0b0;

    filter:
        drop-shadow(0 1px 0 #6e3100)
        drop-shadow(0 0 3px rgba(255,255,255,.65))
        drop-shadow(0 0 7px rgba(255,170,25,.45));
}

/* CYAN */
.three-cine-button--cyan .three-cine-copy strong{
    color: #eefcff;
    text-shadow:
        0 1px 0 #003244,
        0 2px 0 #001926,
        0 3px 6px rgba(0,0,0,.48),
        0 0 10px rgba(34,214,255,.20);
}

.three-cine-button--cyan .three-cine-copy small{
    color: #79ebff;
    text-shadow:
        0 1px 0 #002838,
        0 2px 4px rgba(0,0,0,.5);
}

.three-cine-button--cyan .three-cine-icon svg {
    stroke: #d8fcff;

    filter:
        drop-shadow(0 1px 0 #00475d)
        drop-shadow(0 0 3px rgba(255,255,255,.70))
        drop-shadow(0 0 7px rgba(0,210,255,.48));
}

/* sheen */
.three-cine-sheen{
    position: absolute;
    z-index: 4;
    top: 9px;
    bottom: 9px;
    left: -30%;
    width: 18%;
    opacity: 0;
    pointer-events: none;
    transform: skewX(-22deg);
    mix-blend-mode: screen;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.02) 18%,
        rgba(255,255,255,.18) 45%,
        rgba(255,255,255,.45) 50%,
        rgba(255,255,255,.14) 56%,
        rgba(255,255,255,.02) 82%,
        transparent 100%
    );
    filter: blur(.8px);
}

.three-cine-button:hover{
    transform: translateY(-2px) scale(1.012);
    filter: brightness(1.06) saturate(1.08);
}

.three-cine-button:hover .three-cine-sheen{
    opacity: 1;
    animation: threeCineSweepReal .9s ease-out forwards;
}

.three-cine-button:hover .three-cine-frame{
    filter: brightness(1.05);
}

.three-cine-button--gold:hover .three-cine-frame{
    filter:
        brightness(1.07)
        drop-shadow(0 0 7px rgba(255,170,45,.25));
}

.three-cine-button--cyan:hover .three-cine-frame{
    filter:
        brightness(1.07)
        drop-shadow(0 0 7px rgba(0,219,255,.25));
}

.three-cine-button:active{
    transform: translateY(1px) scale(.995);
    filter: brightness(.98);
}

@keyframes threeCineSweepReal{
    from{ left:-30%; }
    to{ left:122%; }
}

@media (max-width: 1200px){
    .three-cine-button{
        width: 300px;
        height: 82px;
    }

    .three-cine-content{
        padding: 0 22px;
    }

    .three-cine-icon{
        width: 42px;
        height: 42px;
        margin-right: 10px;
    }

    .three-cine-icon svg{
        width: 28px;
        height: 28px;
    }

    .three-cine-copy strong{
        font-size: 16px;
    }

    .three-cine-copy small{
        font-size: 8.8px;
    }
}

.three-cine-button--gold .three-cine-copy {
    transform: translate(0px, 0px);
}

.three-cine-button--cyan .three-cine-copy {
    transform: translate(0px, 0px);
}

/* =========================================================
   CENTRARE AUTOMATA FINALA TEXT + ICON
========================================================= */

.three-cine-button .three-cine-content {
    position: absolute !important;
    inset: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.three-cine-button .three-cine-copy {
    position: absolute !important;

    left: 50% !important;
    top: 50% !important;

    width: 100% !important;
    height: auto !important;

    padding: 0 68px !important;
    margin: 0 !important;

    transform: translate(-50%, -50%) !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
}

.three-cine-button .three-cine-icon {
    position: absolute !important;

    left: 24px !important;
    top: 50% !important;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
