/* App Download Buttons Styles */
.youzify-app-download-buttons {
    margin: 15px 0;
}

/* Widget Container */
.youzify-app-download-widget-container {
    margin: 20px 0;
    padding: 0 15px;
}

.youzify-app-download-widget-container .youzify-app-download-buttons {
    margin: 0;
}

.youzify-app-buttons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.youzify-app-button {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.youzify-app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}

.youzify-app-button-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.youzify-app-button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.youzify-app-button-text-small {
    font-size: 10px;
    line-height: 1;
    opacity: 0.8;
}

.youzify-app-button-text-large {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.youzify-android-button {
    background: #000;
}

.youzify-ios-button {
    background: #000;
}

/* Follow on App Button */
.youzify-follow-app-container {
    margin-top: 10px;
}

.youzify-follow-app-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.youzify-follow-app-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.youzify-follow-app-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.youzify-follow-app-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.youzify-follow-app-content {
    flex: 1;
}

.youzify-follow-app-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.youzify-follow-app-subtext {
    font-size: 12px;
    opacity: 0.8;
}

.youzify-follow-app-arrow {
    margin-left: 8px;
    flex-shrink: 0;
}

/* App Modal Styles */
.youzify-app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.youzify-app-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.youzify-app-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: youzifyModalSlideIn 0.3s ease-out;
}

@keyframes youzifyModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.youzify-app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
}

.youzify-app-modal-avatar {
    flex-shrink: 0;
}

.youzify-app-modal-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.youzify-app-modal-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youzify-app-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.youzify-app-modal-body {
    padding: 20px;
}

.youzify-app-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #000;
    text-align: center;
}

.youzify-app-modal-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

.youzify-app-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.youzify-app-modal-button {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.youzify-app-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}

.youzify-app-modal-button-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.youzify-app-modal-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.youzify-app-modal-button-text-small {
    font-size: 11px;
    line-height: 1;
    opacity: 0.8;
    margin-bottom: 2px;
}

.youzify-app-modal-button-text-large {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.youzify-app-modal-legal {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.youzify-app-modal-legal a {
    color: #007bff;
    text-decoration: none;
}

.youzify-app-modal-legal a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .youzify-app-buttons-container {
        flex-direction: column;
    }
    
    .youzify-app-button {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .youzify-app-modal {
        padding: 10px;
    }
    
    .youzify-app-modal-content {
        max-width: 100%;
    }
    
    .youzify-app-modal-buttons {
        gap: 10px;
    }
    
    .youzify-app-modal-button {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .youzify-app-download-buttons {
        margin: 10px 0;
    }
    
    .youzify-app-button {
        padding: 10px 12px;
    }
    
    .youzify-follow-app-button {
        padding: 10px;
    }
    
    .youzify-follow-app-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .youzify-follow-app-text {
        font-size: 13px;
    }
    
    .youzify-follow-app-subtext {
        font-size: 11px;
    }
}

/* Integration with Youzify Profile */
.youzify-profile-header .youzify-app-download-buttons {
    margin: 15px 0 0 0;
}

.youzify-profile-sidebar .youzify-app-download-buttons {
    margin: 0 0 20px 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .youzify-app-modal-content {
        background: #1a1a1a;
        color: #fff;
    }
    
    .youzify-app-modal-title {
        color: #fff;
    }
    
    .youzify-app-modal-description {
        color: #ccc;
    }
    
    .youzify-app-modal-close {
        color: #ccc;
    }
    
    .youzify-app-modal-close:hover {
        background: #333;
        color: #fff;
    }
}
