/* ============================================
   COMPONENTS.CSS - Reusable Component Styles
   ============================================ */

/* Buttons */
.cta-button,
.button {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.cta-button {
    background: var(--color-accent);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.button-primary {
    background: var(--color-accent);
    color: white;
}

.button-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.button-secondary {
    background: white;
    color: var(--color-primary);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Cards */
.feature-card,
.use-case-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card {
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.use-case-card {
    padding: 2.5rem;
    border-left: 5px solid var(--color-primary);
}

.use-case-image {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.use-case-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.use-case-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.use-case-card .challenge {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.use-case-card .solution {
    color: var(--color-text-muted);
}

/* Steps */
.step {
    text-align: center;
}

.step-icon {
    display: block;
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Device Frame */
.device-frame {
    background: white;
    border-radius: 40px;
    padding: 12px;
    width: 300px;
    box-shadow: var(--shadow-lg);
}

.device-screen {
    background: var(--primary-gradient);
    border-radius: 34px;
    height: 600px;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: black;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.screen-content {
    padding-top: 1rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.screen-content-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.screen-content .screen-title,
.screen-content .annotation-point,
.screen-content .instruction-text {
    position: relative;
    z-index: 1;
}

.screen-content h4,
.screen-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.annotation-point {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.annotation-point:hover {
    transform: scale(1.05);
}

.instruction-text {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Demo Image Container */
.demo-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

/* Step panel at bottom of demo-text (left column) */
.demo-text .demo-step-panel {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    min-height: 100px;
}

.demo-step-placeholder {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.demo-step-panel:has(.info-popup.show) .demo-step-placeholder {
    display: none;
}

.demo-step-panel .info-popup {
    margin-top: 0;
    padding: 1rem;
}

.demo-step-panel .info-popup.show {
    display: block;
}

/* Demo List */
.demo-list {
    list-style: none;
    margin-bottom: 2rem;
}

.demo-list li {
    padding: 0.8rem 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.demo-list li:before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: bold;
}

/* Interactive Elements */
.tap-zone {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.tap-instruction {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.interactive-point {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin: 1rem;
}

.interactive-point:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.interactive-point::after {
    content: "i";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Info Popup */
.info-popup {
    display: none;
    background: white;
    color: var(--color-text);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.info-popup.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.popup-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.popup-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}
