/* tools/photoframe/style.css */
@import url('https://xullua.com/css/color.css');

/* Tool Specific Styles */
.file-upload-btn:hover {
    background-color: var(--thirdback);
    border-color: var(--subtext);
}

/* Preview Area Specifics */
.canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.preview-frame {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: width 0.3s, height 0.3s, border-radius 0.3s;
}

/* Aspect Ratios */
.canvas-container.ratio-9-16 .preview-frame {
    width: 360px;
    /* Base width for preview */
    height: 640px;
    border-radius: 0;
    /* Mobile screen style */
}

.canvas-container.ratio-4-5 .preview-frame {
    width: 400px;
    height: 500px;
    border-radius: 0;
}

.canvas-container.ratio-1-1 .preview-frame {
    width: 400px;
    height: 400px;
    border-radius: 0;
}

/* Image Container */
.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

.image-container img {
    position: absolute;
    transform-origin: center center;
    cursor: grab;
}

.image-container img:active {
    cursor: grabbing;
}

/* Overlay Card (Google Maps Style) */
.overlay-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 8px 16px 24px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-family: var(--font-family);
    color: #202124;
}

/* Dark Mode Theme for Card */
.preview-frame.dark-mode .overlay-card {
    background: #202124;
    color: #e8eaed;
}

.card-handle {
    width: 42px;
    height: 4.5px;
    background-color: #dfe1e5;
    border-radius: 10px;
    margin: 0 auto 12px;
}

.preview-frame.dark-mode .card-handle {
    background-color: #5f6368;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-header-row h2 {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 12px;
    color: #5f6368;
}

.preview-frame.dark-mode .header-actions {
    color: #9aa0a6;
}

.header-actions .material-symbols-rounded {
    font-size: 24px;
    cursor: pointer;
}

/* Rating Row */
.rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-size: 14px;
}

.rating-num {
    font-weight: 500;
}

.stars-container {
    position: relative;
    display: inline-block;
    color: #dadce0;
    font-size: 14px;
    line-height: 1;
}

.preview-frame.dark-mode .stars-container {
    color: #5f6368;
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #fbbc04;
}

.review-count {
    color: #70757a;
    margin-left: 2px;
}

.preview-frame.dark-mode .review-count {
    color: #9aa0a6;
}

/* Meta Row */
.meta-row {
    font-size: 14px;
    color: #70757a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.preview-frame.dark-mode .meta-row {
    color: #9aa0a6;
}

.separator {
    font-weight: bold;
}

/* Status Row */
.status-row {
    font-size: 14px;
    margin-bottom: 15px;
}

.status-open {
    color: #188038;
    font-weight: 500;
}

.preview-frame.dark-mode .status-open {
    color: #8ab4f8;
}

/* Share Options */
.share-options {
    padding: 10px 0;
}

.share-link-container input {
    flex: 1;
    margin-bottom: 0;
    font-family: monospace;
    font-size: 12px;
}

/* Modal Visibility handled by tools.css */

/* Action Pills - Horizontal Layout */
.card-actions {
    display: flex;
    gap: 4px;
}

.action-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 8px 16px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    color: #1967d2;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    white-space: nowrap;
    background: transparent;
    /* Default transparent */
}

.preview-frame.dark-mode .action-pill {
    border-color: #5f6368;
    color: #8ab4f8;
}

/* Primary Action (Directions) */
.action-pill.primary {
    background-color: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.preview-frame.dark-mode .action-pill.primary {
    background-color: #8ab4f8;
    color: #202124;
    border-color: #8ab4f8;
}

.action-pill .material-symbols-rounded {
    font-size: 20px;
}

/* Header Icons - Background Circle */
.header-actions .icon-btn {
    background-color: #f1f3f4;
    /* Light grey background */
    color: #3c4043;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background-color 0.2s;
}

.preview-frame.dark-mode .header-actions .icon-btn {
    background-color: #303134;
    /* Dark grey background */
    color: #e8eaed;
}

.header-actions .icon-btn:hover {
    background-color: #e8eaed;
}

.preview-frame.dark-mode .header-actions .icon-btn:hover {
    background-color: #3c4043;
}

/* History Item Override for Photoframe (No colored border) */
.history-item {
    border-left: 1px solid var(--line);
}