/* Krush TikTok Campaign Landing Pages - Fully Mobile Responsive */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #fef7cd 0%, #f4d03f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: #333;
    overflow-x: hidden;
}

/* Main Profile Container */
.profile-container {
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* Profile Header */
.profile-header {
    margin-bottom: 20px;
    padding: 0 10px;
}

.profile-name {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    word-wrap: break-word;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #27ae60;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.profile-bio {
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    color: #555;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 300px;
    padding: 0 5px;
}

/* Main Image Container - Landscape Style */
.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.8s ease-out 0.3s both;
}

/* Image - Landscape Crop */
.profile-image {
    width: 100%;
    height: clamp(220px, 60vw, 280px);
    object-fit: cover;
    object-position: center;
    display: block;
}

/* CTA Overlay - Positioned at bottom */
.cta-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 10;
}

/* CTA Button - Exact Match to Reference */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: white;
    color: #333;
    border: none;
    border-radius: 25px;
    padding: clamp(12px, 3vw, 14px) clamp(20px, 5vw, 24px);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.3;
    
    /* Bouncing Animation */
    animation: bounce 2s infinite;
    
    /* Prevent text overflow */
    word-wrap: break-word;
    hyphens: auto;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* CTA Icon */
.cta-icon {
    width: clamp(16px, 4vw, 18px);
    height: clamp(16px, 4vw, 18px);
    opacity: 0.7;
    flex-shrink: 0;
}

/* Footer */
.footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: clamp(15px, 4vw, 20px);
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    color: #777;
    opacity: 0.8;
    flex-wrap: wrap;
    padding: 0 10px;
}

.footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer a:hover {
    color: #333;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bouncing Animation for CTA Button */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Mobile-First Responsive Design */

/* Small Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .profile-container {
        max-width: 100%;
        width: 100%;
    }
    
    .profile-header {
        margin-bottom: 15px;
    }
    
    .profile-image-container {
        border-radius: 15px;
        max-width: 100%;
    }
    
    .cta-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    
    .cta-button {
        border-radius: 20px;
        min-height: 44px; /* iOS recommended touch target */
        font-size: 0.95rem;
    }
    
    .footer {
        margin-top: 20px;
        gap: 12px;
    }
}

/* Very Small Phones (up to 375px) */
@media (max-width: 375px) {
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-bio {
        font-size: 0.95rem;
    }
    
    .profile-image {
        height: 200px;
    }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .cta-icon {
        width: 16px;
        height: 16px;
    }
}

/* Extra Small Phones (up to 320px) */
@media (max-width: 320px) {
    .profile-name {
        font-size: 1.6rem;
    }
    
    .profile-bio {
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    .profile-image {
        height: 180px;
    }
    
    .cta-overlay {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .cta-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
}

/* Tablet Portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .profile-container {
        max-width: 450px;
    }
    
    .profile-image {
        height: 320px;
    }
    
    .cta-overlay {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

/* Large Screens (769px+) */
@media (min-width: 769px) {
    body {
        padding: 30px;
    }
    
    .profile-container {
        max-width: 400px;
    }
    
    .profile-image {
        height: 280px;
    }
    
    .profile-header {
        margin-bottom: 25px;
    }
    
    .footer {
        margin-top: 40px;
    }
}

/* TikTok Detection Overlay - Mobile Responsive */
.tiktok-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.tiktok-message {
    background: white;
    border-radius: 15px;
    padding: clamp(20px, 5vw, 30px);
    text-align: center;
    max-width: 350px;
    width: 100%;
    margin: 0 10px;
}

.tiktok-message h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
}

.tiktok-message p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Touch-Friendly Interactions */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .footer a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 4px;
    }
}

/* Landscape Orientation on Mobile */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        padding: 5px 15px;
    }
    
    .profile-header {
        margin-bottom: 10px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-image {
        height: 160px;
    }
    
    .footer {
        margin-top: 15px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .profile-image-container {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }
    
    .cta-button {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cta-button {
        animation: none;
    }
    
    .status-dot {
        animation: none;
    }
    
    .profile-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .profile-image-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
