/* RawStore MAM - Global Styles */

:root {
    --bildbyran-red: #C6007C;
    --bildbyran-red-hover: #A00063;
}

/* Primary button styles */
.btn-primary {
    background-color: var(--bildbyran-red);
}

.btn-primary:hover {
    background-color: var(--bildbyran-red-hover);
}

.text-primary {
    color: var(--bildbyran-red);
}

.bg-primary {
    background-color: var(--bildbyran-red);
}

.bg-primary-light {
    background-color: #FFE0F2;
}

.border-primary {
    border-color: var(--bildbyran-red);
}

/* Tab styles */
.tab-button {
    cursor: pointer;
    outline: none;
}

.tab-button:focus {
    outline: none;
}

/* Thumbnail styles */
.thumbnail {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f3f4f6;
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Modal image */
#modalImage {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

/* Keyword tags */
.keyword-tag {
    cursor: pointer;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background-color: var(--bildbyran-red);
    color: white;
}

/* Navigation buttons (for modal/carousel) */
.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 20px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-button:hover {
    background: rgba(0,0,0,0.8);
}

.nav-button-left {
    left: 20px;
}

.nav-button-right {
    right: 20px;
}

/* Album row styles */
.album-row {
    cursor: pointer;
    transition: background-color 0.15s;
}

.album-row:hover {
    background-color: #f9fafb;
}

.album-row.expanded {
    background-color: #f3f4f6;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Photo card */
.photo-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .thumbnail {
        height: 200px;
    }
    
    #modalImage {
        max-height: 60vh;
    }
    
    .nav-button {
        padding: 15px 10px;
        left: 5px !important;
        right: 5px !important;
    }
    
    .nav-button svg {
        width: 24px;
        height: 24px;
    }
    
    /* Stack search buttons on mobile */
    .search-button-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-button-group button,
    .search-button-group input {
        width: 100%;
    }
    
    /* Better mobile modal */
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Larger touch targets on mobile */
    select, input[type="date"], input[type="text"] {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Hide less important info on mobile */
    .hide-mobile {
        display: none;
    }
    
    /* Compact header on mobile */
    .mobile-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .thumbnail {
        height: 220px;
    }
    
    /* 2 columns on tablet */
    .tablet-2-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small mobile (portrait phones) */
@media (max-width: 480px) {
    .thumbnail {
        height: 180px;
    }
    
    /* Single column grid on small phones */
    .results-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Smaller text on small screens */
    h1 {
        font-size: 1.5rem;
    }
    
    /* Compact padding */
    .mobile-compact {
        padding: 1rem !important;
    }
}

/* Login Page Specific Styles */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-signin {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 100%;
}

.form-signin .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--bildbyran-red);
    box-shadow: 0 0 0 3px rgba(198, 0, 124, 0.1);
}

.checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.checkbox input {
    margin-right: 8px;
}

.keepmeloggedin {
    color: #666;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    color: white;
    cursor: pointer;
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Upload Page Specific Styles */
.uppy-DragDrop {
    min-height: 400px !important;
}

/* Explorer Page Specific Styles */
.folder-icon {
    font-size: 1.5rem;
}

.file-row:hover {
    background-color: #f3f4f6;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}
