/* ===========================================
   iKeePass Website - Device Frames & Features
   =========================================== */

/* Feature Section Spacing */
.feature-section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

/* Feature Title & Text */
.feature-title {
    color: #444F60;
    margin-bottom: 0.75rem !important;
}

.feature-subtitle {
    color: #69707a;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

/* Override Bulma's title+subtitle negative margin */
.feature-title + .feature-subtitle {
    margin-top: 0 !important;
}

.feature-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-text ul {
    margin-top: 0.5rem;
    list-style: none;
    padding-left: 0;
}

.feature-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-text li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===========================================
   Device Frame Wrappers
   =========================================== */

.device-frame {
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease;
}

.device-frame:hover {
    transform: scale(1.02);
}

/* iPhone Frame */
.device-iphone {
    background: #1d1d1f;
    border-radius: 40px;
    padding: 14px 10px;
    box-shadow:
        0 0 0 2px #3a3a3c,
        0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    margin: 0 auto;
}

.device-iphone img {
    border-radius: 28px;
    width: 100%;
    height: auto;
    display: block;
}

/* iPhone Notch/Dynamic Island */
.device-iphone::before {
    content: "";
    display: block;
    width: 100px;
    height: 8px;
    background: #1d1d1f;
    border-radius: 4px;
    margin: 0 auto 8px;
}

/* MacBook Frame */
.device-macbook {
    background: #1d1d1f;
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 0;
    box-shadow:
        0 0 0 2px #3a3a3c,
        0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.device-macbook img {
    border-radius: 4px;
    width: 100%;
    height: auto;
    display: block;
}

/* MacBook Bottom Bar (Keyboard/Trackpad Area) */
.device-macbook::after {
    content: "";
    display: block;
    height: 20px;
    background: linear-gradient(to bottom, #2a2a2c, #1d1d1f);
    border-radius: 0 0 8px 8px;
    margin: 0 -12px;
    position: relative;
    width: calc(100% + 24px);
}

/* MacBook Camera Dot */
.device-macbook::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: #2a2a2c;
    border-radius: 50%;
    margin: 0 auto 6px;
}

/* ===========================================
   Homepage Section 3 - Device Frames
   =========================================== */

.screenshot-card {
    transition: transform 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

/* ===========================================
   Responsive Design
   =========================================== */

@media screen and (max-width: 768px) {
    .feature-section {
        margin-bottom: 3rem;
    }

    .device-iphone {
        max-width: 260px;
        padding: 10px 8px;
        border-radius: 32px;
    }

    .device-iphone img {
        border-radius: 24px;
    }

    .device-macbook {
        max-width: 100%;
        padding: 8px 8px 0;
    }

    .device-macbook::after {
        height: 14px;
        margin: 0 -8px;
        width: calc(100% + 16px);
    }

    /* On mobile, image column comes first regardless of alternation */
    .feature-section .columns {
        display: flex;
        flex-direction: column;
    }

    .feature-section .column.is-5 {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .device-iphone {
        max-width: 220px;
        padding: 8px 6px;
        border-radius: 28px;
    }

    .device-iphone img {
        border-radius: 20px;
    }
}
