/* Etkinlik Sosyal Medya Paylaşım Widget CSS */

.etkinlik-social-share {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--etkinlik-share-title-color, #2c3e50);
    margin: 0 0 20px 0;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Layout Styles */
.layout-horizontal .social-share-buttons {
    flex-direction: row;
    justify-content: center;
}

.layout-vertical .social-share-buttons {
    flex-direction: column;
    align-items: center;
}

.layout-grid .social-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.layout-floating {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    padding: 10px;
}

.layout-floating .social-share-buttons {
    flex-direction: column;
    gap: 10px;
}

.layout-floating .share-title {
    display: none;
}

/* Button Styles */
.social-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    color: var(--etkinlik-share-btn-text, #ffffff);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 50px;
    min-height: 50px;
    position: relative;
    overflow: hidden;
}

.social-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ffffff;
}

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

/* Button Style Variations */
.button-style-icon_only .social-share-button {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

.button-style-icon_only .button-text {
    display: none;
}

.button-style-text_only .social-share-button i {
    display: none;
}

.button-style-text_only .social-share-button {
    padding: 12px 20px;
}

/* Platform Specific Colors */
.share-whatsapp {
    background-color: #25D366;
}

.share-facebook {
    background-color: #1877F2;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-telegram {
    background-color: #0088CC;
}

.share-email {
    background-color: #6c757d;
}

.share-copy_link {
    background-color: #495057;
}

.share-qr_code {
    background-color: #343a40;
}

/* QR Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.qr-modal-close:hover {
    color: #dc3545;
}

.qr-modal h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
}

.qr-download-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.download-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #007cba;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.download-qr-btn:hover {
    background: #005a87;
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.download-qr-svg {
    background: #27ae60;
}

.download-qr-svg:hover {
    background: #219a52;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .etkinlik-social-share {
        padding: 15px;
        margin: 15px 0;
    }
    
    .social-share-buttons {
        gap: 8px;
    }
    
    .layout-grid .social-share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .social-share-button {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .button-style-icon_only .social-share-button {
        width: 45px;
        height: 45px;
    }
    
    .layout-floating {
        right: 10px;
        padding: 5px;
    }
    
    .layout-floating .social-share-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 50%;
    }
    
    .layout-floating .button-text {
        display: none;
    }
    
    .qr-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .qr-code-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .layout-horizontal .social-share-buttons,
    .layout-grid .social-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .layout-grid .social-share-buttons {
        display: flex;
    }
    
    .social-share-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .button-style-icon_only .social-share-button {
        width: 45px;
        max-width: 45px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .etkinlik-social-share {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .share-title {
        color: #ecf0f1;
    }
    
    .qr-modal-content {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .qr-modal h3 {
        color: #ecf0f1;
    }
    
    .qr-code-image {
        border-color: #4a5f7a;
    }
}

/* Animation Effects */
.social-share-button {
    position: relative;
    overflow: hidden;
}

.social-share-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-share-button:hover::before {
    width: 100%;
    height: 100%;
}

/* Success Animation for Copy Link */
.copy-success {
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background-color: #28a745;
    }
    100% {
        transform: scale(1);
    }
}

/* Accessibility */
.social-share-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.social-share-button:focus:not(:focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {
    .etkinlik-social-share,
    .layout-floating {
        display: none;
    }
} 