/* 
 * Installation Page Styles
 * Shopify Green Theme
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #008060 0%, #004c3f 100%);
    position: relative;
}

/* Animated background gradient */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #95bf47 0%, #5c6ac4 100%);
    opacity: 0;
    animation: gradientShift 10s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 100px; height: 100px; left: 60%; animation-delay: 4s; }
.particle:nth-child(4) { width: 70px; height: 70px; left: 80%; animation-delay: 6s; }
.particle:nth-child(5) { width: 90px; height: 90px; left: 40%; animation-delay: 8s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.install-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 50px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.install-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #008060, #95bf47, #5c6ac4, #00a0ac);
    background-size: 300% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008060 0%, #004c3f 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 128, 96, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.app-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #008060 0%, #004c3f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.app-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.install-section {
    margin-top: 40px;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.install-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.shop-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
}

.shop-input:focus {
    border-color: #008060;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 128, 96, 0.1);
}

.shop-input::placeholder {
    color: #94a3b8;
}

.install-button {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #008060 0%, #004c3f 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 96, 0.4);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 96, 0.5);
    background: linear-gradient(135deg, #009e73 0%, #005a47 100%);
}

.install-button:active {
    transform: translateY(0);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #008060 0%, #004c3f 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.feature-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
}

.footer-note {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #94a3b8;
}

.footer-note a {
    color: #008060;
    text-decoration: none;
    font-weight: 600;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .install-card {
        padding: 40px 30px;
    }

    .app-title {
        font-size: 28px;
    }

    .install-form {
        flex-direction: column;
    }

    .install-button {
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .install-card {
        padding: 30px 20px;
    }

    .app-title {
        font-size: 24px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }
}
