/**
 * MyListing Social Share - Styles
 * Version: 1.0.0
 * Minimal & Clean Design
 */

/* ========================================
   Paylaş Butonu - Quick Actions Stili
   ======================================== */
.pss-share-wrapper {
    display: inline-block;
}

.pss-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #77624d;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.pss-share-btn:hover {
    color: #311b0c;
}

.pss-share-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pss-share-btn span {
    display: inline;
}

/* Quick Actions içindeki görünüm */
#pss-share-action {
    display: flex;
    align-items: center;
}

#pss-share-action .pss-share-wrapper {
    margin: 0;
}

/* ========================================
   Modal
   ======================================== */
.pss-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.pss-modal-overlay.active {
    display: flex;
}

.pss-modal-content {
    position: relative;
    max-width: 340px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
.pss-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.pss-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #311b0c;
    margin: 0;
}

.pss-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.pss-modal-close:hover {
    color: #311b0c;
}

/* Preview Area */
.pss-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #f8f6f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pss-preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pss-loading-spinner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #77624d;
    font-size: 13px;
}

.pss-loading-spinner svg {
    width: 32px;
    height: 32px;
    animation: pss-spin 1s linear infinite;
    stroke: #77624d;
}

@keyframes pss-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal Actions */
.pss-modal-actions {
    padding: 12px;
    display: flex;
    gap: 10px;
}

.pss-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pss-action-btn svg {
    width: 16px;
    height: 16px;
}

.pss-btn-download {
    background: #f5f3f1;
    color: #311b0c;
}

.pss-btn-download:hover {
    background: #ebe7e3;
}

.pss-btn-instagram {
    background: #311b0c;
    color: #fff;
}

.pss-btn-instagram:hover {
    background: #4a2a15;
}

.pss-btn-instagram svg {
    fill: currentColor;
}

/* ========================================
   Story Card (Gizli - Render için)
   ======================================== */
.pss-story-card {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1080px;
    height: 1920px;
    background-size: cover;
    background-position: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.pss-story-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pss-story-cover {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.pss-story-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.88;
}

.pss-story-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 60px;
}

.pss-story-profile {
    text-align: center;
    margin-top: -80px;
}

.pss-story-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.95);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.pss-story-name {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin: 32px 0 0;
    line-height: 1.15;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pss-story-tagline {
    font-size: 36px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 12px 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pss-story-buttons {
    display: flex;
    gap: 20px;
    margin: 60px 0;
}

.pss-story-btn {
    flex: 1;
    padding: 36px 24px;
    border-radius: 16px;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.pss-story-url {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-top: auto;
    padding-bottom: 40px;
}

.pss-story-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pss-story-logo {
    max-height: 100%;
    max-width: 280px;
    object-fit: contain;
}

/* ========================================
   Floating Button (Fallback)
   ======================================== */
#pss-floating-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

#pss-floating-button-container .pss-share-btn {
    background: #311b0c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(49, 27, 12, 0.3);
}

#pss-floating-button-container .pss-share-btn:hover {
    background: #4a2a15;
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .pss-modal-content {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .pss-modal-actions {
        padding: 10px;
        gap: 8px;
    }
    
    .pss-action-btn {
        padding: 11px 12px;
        font-size: 12px;
    }
    
    .pss-share-btn span {
        display: none;
    }
    
    .pss-share-btn svg {
        width: 22px;
        height: 22px;
    }
    
    #pss-floating-button-container {
        bottom: 15px;
        right: 15px;
    }
    
    #pss-floating-button-container .pss-share-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pss-modal-header {
        padding: 12px 14px;
    }
    
    .pss-modal-title {
        font-size: 14px;
    }
}
