/* Enhanced Share Modal Styles */
.sns-share-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.sns-share-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 28px;
    max-width: 520px;
    width: 90%;
    min-height: 360px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

.share-header {
    position: relative;
    margin-bottom: 20px;
}

.share-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.share-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.share-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.share-platforms {
    margin-bottom: 24px;
}

.share-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.share-row:last-child {
    margin-bottom: 0;
}

.share-platform {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 4px;
}

.share-platform a,
.share-platform button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 100%;
}

.share-platform a:hover,
.share-platform button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 20px;
    color: white;
    transition: all 0.2s ease;
}

.platform-icon.twitter { background: #1DA1F2; }
.platform-icon.facebook { background: #4267B2; }
.platform-icon.line { background: #06C755; }
.platform-icon.linkedin { background: #0077B5; }
.platform-icon.reddit { background: #FF4500; }
.platform-icon.discord { background: #5865F2; }
.platform-icon.copy { background: #6c757d; }
.platform-icon.native { background: #007bff; }

.platform-name {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin: 0;
    text-align: center;
}

.line-share-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-it-button {
    position: absolute;
    opacity: 0;
    pointer-events: auto;
    z-index: 10;
    width: 64px;
    height: 64px;
}

.share-url-container {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    position: relative;
    margin-top: 8px;
}

#share-url-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    color: #666;
}

.copy-success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: successPop 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes successPop {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .sns-share-content {
        width: 95%;
        padding: 24px;
        margin: 0 auto;
        min-height: 320px;
    }
    
    .share-row {
        margin-bottom: 16px;
    }
    
    .platform-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .platform-name {
        font-size: 11px;
    }
    
    .share-header h1 {
        font-size: 18px;
    }
    
    .share-close-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .share-platforms {
        margin-bottom: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sns-share-content {
        background: #2d3748;
        color: white;
    }
    
    .share-header h1 {
        color: white;
    }
    
    .share-close-btn {
        background: #4a5568;
        color: #cbd5e0;
    }
    
    .share-close-btn:hover {
        background: #2d3748;
        color: white;
    }
    
    .share-platform a:hover,
    .share-platform button:hover {
        background: #4a5568;
    }
    
    .platform-name {
        color: #cbd5e0;
    }
    
    #share-url-input {
        background: #4a5568;
        border-color: #718096;
        color: #cbd5e0;
    }
    
    .share-url-container {
        border-color: #4a5568;
    }
}