ferrero-naming-tool/public/css/style.css
DJP 82eff7b76a Initial commit: Ferrero Communication Assets Naming Convention Tool
- PHP-based naming convention tool for Ferrero communication assets
- Filename builder with validation
- Filename decoder with component breakdown
- Complete help documentation
- Ferrero brand styling with Montserrat font
- OMG Job Number field (numbers only, max 10 chars)
- 105 brands, 29 countries, 39 asset types from Excel
- Responsive landscape layout
- Data management via JSON (parsed from Excel)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 16:05:16 -04:00

683 lines
13 KiB
CSS

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
/* Ferrero Brand Colors */
:root {
--ferrero-gold: #C9A961;
--ferrero-brown: #6B4423;
--ferrero-dark-brown: #3D2817;
--ferrero-light: #F5F0E8;
--ferrero-cream: #FBF8F3;
--ferrero-accent: #8B6F47;
--text-primary: #2C2C2C;
--text-secondary: #666666;
--border-color: #E5DFD3;
--success: #4A7C59;
--error: #C1666B;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, var(--ferrero-cream) 0%, var(--ferrero-light) 100%);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 1600px;
margin: 0 auto;
padding: 20px;
}
/* Header */
.header {
background: linear-gradient(135deg, var(--ferrero-brown) 0%, var(--ferrero-dark-brown) 100%);
color: white;
padding: 40px 30px;
border-radius: 12px;
margin-bottom: 30px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.header-content h1 {
font-size: 2.5em;
font-weight: 700;
margin-bottom: 8px;
letter-spacing: 1px;
}
.subtitle {
font-size: 1.2em;
color: var(--ferrero-gold);
font-weight: 300;
}
/* Reference Section */
.reference-section {
background: white;
padding: 30px;
border-radius: 12px;
margin-bottom: 30px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
border: 1px solid var(--border-color);
}
.reference-section h2 {
color: var(--ferrero-brown);
font-size: 1.8em;
margin-bottom: 20px;
font-weight: 400;
}
.naming-structure {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
padding: 20px;
background: var(--ferrero-cream);
border-radius: 8px;
}
.structure-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 15px 20px;
background: white;
border: 2px solid var(--ferrero-gold);
border-radius: 8px;
min-width: 120px;
}
.structure-item .label {
font-size: 0.75em;
font-weight: 600;
color: var(--ferrero-brown);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 5px;
}
.structure-item .chars {
font-size: 0.85em;
color: var(--text-secondary);
}
.separator {
font-size: 1.5em;
color: var(--ferrero-accent);
font-weight: bold;
}
.note {
font-size: 0.9em;
color: var(--text-secondary);
font-style: italic;
padding: 15px;
background: var(--ferrero-light);
border-left: 4px solid var(--ferrero-gold);
border-radius: 4px;
}
/* Tabs */
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.tab-button {
flex: 1;
padding: 15px 25px;
background: white;
border: 2px solid var(--border-color);
border-radius: 8px;
cursor: pointer;
font-size: 1em;
font-weight: 500;
color: var(--text-primary);
transition: all 0.3s ease;
}
.tab-button:hover {
background: var(--ferrero-light);
border-color: var(--ferrero-gold);
}
.tab-button.active {
background: var(--ferrero-brown);
color: white;
border-color: var(--ferrero-brown);
}
/* Tab Content */
.tab-content {
min-height: 400px;
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Card */
.card {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
border: 1px solid var(--border-color);
}
.card h3 {
color: var(--ferrero-brown);
font-size: 1.5em;
margin-bottom: 25px;
font-weight: 400;
}
/* Forms */
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.form-row.single-row {
grid-template-columns: repeat(9, 1fr);
gap: 15px;
align-items: end;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group.full-width {
grid-column: 1 / -1;
}
.form-group-checkbox {
justify-content: flex-end;
padding-bottom: 10px;
}
.form-group-checkbox label {
display: flex;
align-items: center;
margin-bottom: 0 !important;
white-space: nowrap;
font-size: 0.9em;
}
.form-group label {
font-weight: 500;
margin-bottom: 8px;
color: var(--ferrero-brown);
font-size: 0.95em;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
padding: 12px 15px;
border: 2px solid var(--border-color);
border-radius: 8px;
font-size: 1em;
transition: all 0.3s ease;
background: white;
width: 100%;
max-width: 100%;
font-family: 'Montserrat', sans-serif;
}
.form-group select {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B4423' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 20px;
padding-right: 40px;
}
.form-group select option {
font-family: 'Montserrat', sans-serif;
}
.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
outline: none;
border-color: var(--ferrero-gold);
box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}
.form-group input[type="checkbox"] {
margin-right: 8px;
width: 18px;
height: 18px;
cursor: pointer;
}
.char-count {
font-size: 0.85em;
color: var(--text-secondary);
margin-top: 5px;
}
.char-count-inline {
font-size: 0.8em;
color: var(--text-secondary);
font-weight: normal;
margin-left: 8px;
}
/* Buttons */
.btn {
padding: 12px 30px;
border: none;
border-radius: 8px;
font-size: 1em;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.btn-primary {
background: var(--ferrero-brown);
color: white;
}
.btn-primary:hover {
background: var(--ferrero-dark-brown);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(107, 68, 35, 0.3);
}
.btn-secondary {
background: var(--ferrero-gold);
color: white;
padding: 8px 20px;
font-size: 0.9em;
}
.btn-secondary:hover {
background: var(--ferrero-accent);
}
/* Result Display */
.result {
margin-top: 30px;
padding: 25px;
background: var(--ferrero-cream);
border-radius: 8px;
border: 2px solid var(--ferrero-gold);
}
.result h4 {
color: var(--ferrero-brown);
margin-bottom: 15px;
font-weight: 500;
}
.filename-output {
display: flex;
align-items: center;
gap: 15px;
}
.filename-output code {
flex: 1;
padding: 15px;
background: white;
border: 2px solid var(--border-color);
border-radius: 6px;
font-size: 1.1em;
font-family: 'Montserrat', 'Monaco', 'Courier New', monospace;
color: var(--ferrero-brown);
word-break: break-all;
font-weight: 500;
}
/* Decode Result */
.decode-result {
margin-top: 30px;
padding: 25px;
background: var(--ferrero-cream);
border-radius: 8px;
border: 2px solid var(--ferrero-gold);
}
.decode-result h4 {
color: var(--ferrero-brown);
margin-bottom: 20px;
font-weight: 500;
}
.decode-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
}
.decode-item {
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid var(--border-color);
}
.decode-label {
display: block;
font-size: 0.85em;
font-weight: 600;
color: var(--ferrero-brown);
text-transform: uppercase;
margin-bottom: 5px;
}
.decode-value {
display: block;
font-size: 1.1em;
color: var(--text-primary);
font-family: 'Montserrat', 'Monaco', 'Courier New', monospace;
font-weight: 500;
}
/* Examples */
.examples-grid {
display: flex;
flex-direction: column;
gap: 20px;
}
.example-item {
padding: 20px;
background: var(--ferrero-cream);
border-radius: 8px;
border-left: 4px solid var(--ferrero-gold);
}
.example-item h4 {
color: var(--ferrero-brown);
margin-bottom: 10px;
}
.example-item code {
display: block;
padding: 12px;
background: white;
border-radius: 6px;
font-family: 'Montserrat', 'Monaco', 'Courier New', monospace;
font-weight: 500;
margin: 10px 0;
}
.example-breakdown {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
margin-top: 15px;
}
.example-breakdown-item {
font-size: 0.9em;
}
.example-breakdown-item strong {
color: var(--ferrero-brown);
}
/* Messages */
.success-message {
margin-top: 15px;
padding: 12px;
background: var(--success);
color: white;
border-radius: 6px;
text-align: center;
animation: slideDown 0.3s ease;
}
.error-message {
margin-top: 15px;
padding: 12px;
background: var(--error);
color: white;
border-radius: 6px;
text-align: center;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hidden {
display: none !important;
}
/* Footer */
.footer {
text-align: center;
padding: 30px;
color: var(--text-secondary);
font-size: 0.9em;
margin-top: 40px;
}
/* Help Page Styles */
.help-section {
margin-bottom: 35px;
padding-bottom: 25px;
border-bottom: 1px solid var(--border-color);
}
.help-section:last-child {
border-bottom: none;
}
.help-section h4 {
color: var(--ferrero-brown);
font-size: 1.3em;
margin-bottom: 15px;
font-weight: 500;
}
.help-section p {
color: var(--text-primary);
line-height: 1.8;
margin-bottom: 10px;
}
.help-formula {
background: var(--ferrero-cream);
padding: 20px;
border-radius: 8px;
margin: 15px 0;
border-left: 4px solid var(--ferrero-gold);
}
.help-formula code {
font-size: 1.1em;
color: var(--ferrero-brown);
font-weight: 600;
font-family: 'Montserrat', monospace;
}
.help-note {
font-size: 0.9em;
color: var(--text-secondary);
font-style: italic;
margin-top: 10px;
}
.help-component {
margin-bottom: 25px;
padding-left: 20px;
border-left: 3px solid var(--ferrero-light);
}
.help-component strong {
display: block;
color: var(--ferrero-brown);
font-size: 1.05em;
margin-bottom: 8px;
}
.help-component p {
margin-bottom: 8px;
}
.help-component ul {
margin: 10px 0 0 20px;
color: var(--text-primary);
}
.help-component li {
margin-bottom: 5px;
line-height: 1.6;
}
.help-examples {
display: flex;
flex-direction: column;
gap: 20px;
}
.help-example {
background: var(--ferrero-light);
padding: 20px;
border-radius: 8px;
border-left: 4px solid var(--ferrero-accent);
}
.help-example code {
display: block;
background: white;
padding: 12px;
border-radius: 6px;
font-size: 1em;
color: var(--ferrero-brown);
margin-bottom: 10px;
font-family: 'Montserrat', 'Monaco', 'Courier New', monospace;
font-weight: 500;
}
.help-example p {
color: var(--text-secondary);
font-size: 0.95em;
margin: 0;
}
.help-tips {
list-style: none;
padding: 0;
}
.help-tips li {
padding: 12px 15px;
margin-bottom: 10px;
background: var(--ferrero-light);
border-radius: 6px;
border-left: 4px solid var(--ferrero-gold);
color: var(--text-primary);
}
.help-tips li:before {
content: "✓ ";
color: var(--success);
font-weight: bold;
margin-right: 8px;
}
.help-faq {
margin-bottom: 20px;
padding: 15px;
background: var(--ferrero-cream);
border-radius: 8px;
}
.help-faq strong {
display: block;
color: var(--ferrero-brown);
margin-bottom: 8px;
font-size: 1.05em;
}
.help-faq p {
color: var(--text-primary);
margin: 0;
padding-left: 15px;
}
/* Responsive Design */
@media (max-width: 768px) {
.naming-structure {
flex-direction: column;
}
.separator {
transform: rotate(90deg);
}
.form-row {
flex-direction: column;
}
.tabs {
flex-direction: column;
}
.header-content h1 {
font-size: 2em;
}
.decode-grid {
grid-template-columns: 1fr;
}
.filename-output {
flex-direction: column;
}
}