/* ===================================
   IMAGE CROP TOOL - COMPLETE STYLES
   =================================== */

.image-crop-tool {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.crop-tool-header {
    text-align: center;
    margin-bottom: 24px;
}

.crop-tool-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.crop-tool-header p {
    font-size: 14px;
    color: #666;
}

/* Main layout - positioning area and preview side by side */
.crop-tool-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    margin-bottom: 24px;
}

/* Left side - Image positioning workspace */
.crop-workspace {
    min-height: 400px;
}

.crop-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.crop-image {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: none; /* Immediate response to dragging */
}

.crop-image:active {
    cursor: grabbing;
}

.crop-image:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* The golden frame showing visible area */
.crop-frame {
    position: absolute;
    border: 3px solid #FFD700;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.crop-frame-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #000;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.crop-instructions {
    text-align: center;
    padding: 12px;
    background: #fffbf0;
    border: 1px solid #FFD700;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.crop-instructions span {
    font-size: 20px;
    margin-right: 8px;
}

/* Right side - Realistic event card preview */
.crop-preview-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-align: center;
}

/* Realistic event card preview - matches search-results.html */
.event-card-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: default;
}

.event-image {
    width: 120px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    float: left;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 6px;
}

.preview-card-content {
    overflow: hidden;
}

.event-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.event-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
}

.event-venue {
    font-weight: 600;
    color: #555;
    margin-top: 4px;
    font-size: 0.95em;
}

.event-cost {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
}

.event-details {
    margin: 15px 0;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
}

.preview-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Recommendations section */
.crop-tool-recommendations {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.crop-tool-recommendations h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.crop-tool-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crop-tool-recommendations li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.crop-tool-recommendations li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.crop-tool-recommendations li:last-child {
    margin-bottom: 0;
}

/* Action buttons */
.crop-tool-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #FFA500;
}

.btn-secondary {
    background: white;
    color: #000;
    border: 2px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #FFD700;
    background: #fffbf0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .crop-tool-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .crop-container {
        height: 300px;
    }

    .crop-preview-panel {
        order: -1; /* Show preview first on mobile */
    }

    .event-card-preview {
        padding: 15px;
    }

    .preview-image-container {
        width: 100px;
        height: 67px;
    }

    .preview-title {
        font-size: 16px;
    }

    .crop-tool-actions {
        flex-direction: column;
    }

    .crop-tool-actions button {
        width: 100%;
    }
}