/* photos.css - macOS Photos App Styling */

/* Photos Window */
.photos-window {
    background: #1a1a1a !important;
    color: #fff;
}

.photos-container {
    display: flex;
    height: 100%;
    background: #1a1a1a;
}

/* Sidebar */
.photos-sidebar {
    width: 220px;
    background: #2c2c2c;
    border-right: 1px solid #404040;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #404040;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section {
    padding: 0 20px 20px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.2s;
}

.sidebar-item:hover {
    background: #3a3a3a;
}

.sidebar-item.active {
    background: #4a4a4a;
    color: #fff;
}

.sidebar-item i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-item .count {
    margin-left: auto;
    background: #4a4a4a;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Albums Grid */
.albums-section {
    border-top: 1px solid #404040;
    padding-top: 20px;
}

.album-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.album-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    overflow: hidden;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    flex: 1;
}

.album-name {
    font-size: 13px;
    color: #e0e0e0;
    margin-bottom: 2px;
}

.album-count {
    font-size: 11px;
    color: #999;
}

/* Main Content */
.photos-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.photos-toolbar {
    height: 50px;
    background: #2c2c2c;
    border-bottom: 1px solid #404040;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

.toolbar-btn.active {
    background: #007AFF;
    color: white;
}

.toolbar-search {
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

.search-box {
    width: 100%;
    padding: 8px 12px 8px 35px;
    background: #3a3a3a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
}

.search-box:focus {
    outline: none;
    border-color: #007AFF;
}

/* Photos Grid */
.photos-grid-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.grid-header {
    margin-bottom: 20px;
}

.grid-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
}

.grid-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.photo-item {
    background: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.photo-item.selected {
    outline: 3px solid #007AFF;
    outline-offset: -3px;
}

.photo-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 12px;
}

.photo-name {
    font-size: 13px;
    color: #fff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-date {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.photo-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-item:hover .photo-actions {
    opacity: 1;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #007AFF;
    transform: scale(1.1);
}

/* Single Photo View */
.photo-view {
    display: none;
    height: 100%;
    background: #000;
}

.photo-view.active {
    display: flex;
    flex-direction: column;
}

.photo-view-toolbar {
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.photo-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.photo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.photo-view-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-full {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

/* Edit Tools */
.edit-tools {
    display: none;
    padding: 20px;
    background: #2c2c2c;
    border-top: 1px solid #404040;
}

.edit-tools.active {
    display: block;
}

.edit-section {
    margin-bottom: 20px;
}

.edit-section h4 {
    color: #fff;
    font-size: 13px;
    margin: 0 0 10px 0;
}

.edit-slider {
    width: 100%;
    height: 4px;
    background: #404040;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.edit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007AFF;
    cursor: pointer;
}

.edit-presets {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-preset {
    padding: 8px 12px;
    background: #3a3a3a;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 12px;
}

.edit-preset:hover {
    background: #4a4a4a;
}

/* Info Panel */
.info-panel {
    width: 300px;
    background: #2c2c2c;
    border-left: 1px solid #404040;
    padding: 20px;
    overflow-y: auto;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h4 {
    color: #fff;
    font-size: 13px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    margin-bottom: 12px;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    font-size: 13px;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .info-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .photos-sidebar {
        display: none;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

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

.photo-item {
    animation: fadeIn 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #404040;
}

.empty-state h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #999;
}

.empty-state p {
    font-size: 13px;
    color: #666;
    max-width: 300px;
    margin: 0 auto;
} 